Mess with Trash

Ivan Semin ivun at wirebyte.com
Sat Mar 12 07:42:48 GMT 2011


Hello!

A  couple  of offtopic words first. Thanks for all the recent fixes, I
am  looking  forward  for  the  new  version  to  try  all that stuff,
hopefully that will resolve all the gmail issues I am having too.

Now  my  new problem. Just reminding, I am syncing 8 gmail accounts to
local dovecot accounts (to avoid gmail banning me for bandwidth limit,
as we have up to 10 people working with each account simultaneously).
I have the following in config:

type = Gmail
remotehost = imap.gmail.com
remoteuser = something
remotepass = somethingelse
remoteport = 993
ssl = yes
maxconnections = 1
realdelete = no
nametrans = lambda folder: re.sub('.*Trash$', 'Trash', folder)
folderfilter = lambda foldername: foldername not in ['[Gmail]/All
Mail','[Gmail]/Sent Messages','[Gmail]/Starred']

The  nametrans  line  is to make Thunderbird (a mail client) delete to
the same folder as gmail.

Recently  I  faced  a  new  problem:  google  banned  me for exceeding
bandwidth  again.  I have a bandwidth graph and I see a lot of traffic
betweeen  the  server  and gmail, which offlineimap is generating. And
that  is  without  making  any  changes  to  the local imap. Again, no
changes on both ends, but a lot of traffic constantly flowing.

The log follows:

Establishing connection to imap.gmail.com:993.
Establishing connection to 127.0.0.1:143.
<skipped some folders>
Syncing Sent Messages: Gmail -> MappedIMAP
Syncing Trash: Gmail -> MappedIMAP
Deleting 143 messages (3153, 3154, 3155, 3156, 3157, 3158, 3159, 3160,
3161, 3162, 3163, 3164, 3165, 3166, 3167, 3168, 3169, 3170, 3171,
3172, 3173, 3174, 3175, 3176, 3177, 3178, 3179, 3180, 3181, 3182, 3183
, 3184, 3185, 3186, 3187, 3188, 3189, 3190, 3191, 3192, 3193, 3194,
3195, 3196, 3197, 3198, 3199, 3200, 3201, 3202, 3203, 3205, 3206,
3207, 3208, 3209, 3210, 3211, 3212, 3213, 3214, 3215, 3216, 3217,
3218, 3
219, 3220, 3221, 3222, 3223, 3224, 3225, 3226, 3227, 3228, 3229, 3230,
3231, 3232, 3233, 3234, 3235, 3236, 3237, 3238, 3239, 3240, 3241,
3242, 3243, 3244, 3245, 3246, 3247, 3248, 3249, 3250, 3251, 3252, 3253
, 3254, 3255, 3256, 3257, 3259, 3260, 3261, 3262, 3263, 3264, 3265,
3266, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3277,
3278, 3279, 3280, 3281, 3282, 3283, 3284, 3285, 3286, 3287, 3289,
3290, 3
291, 3292, 3293, 3294, 3295, 3296, 3297, 3298, 3299) in
MappedIMAP[Trash], LocalStatus[Trash]
Copy message 1 Gmail[Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Copy message 2 Gmail[Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Copy message 3 Gmail[Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Copy message 4 Gmail[Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Copy message 5 Gmail[Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Copy message 6 Gmail[Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Copy message 7 Gmail[Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Copy message 8 Gmail[Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Copy message 9 Gmail[Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Copy message 10 Gmail[Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Copy message 11 Gmail[Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Syncing [Gmail]/Trash: Gmail -> MappedIMAP
Deleting 11 messages (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) in
MappedIMAP[Trash], LocalStatus[Trash]
Copy message 3153 Gmail[[Gmail]/Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Copy message 3154 Gmail[[Gmail]/Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
Copy message 3155 Gmail[[Gmail]/Trash] -> MappedIMAP[Trash], LocalStatus[Trash]
<skipped  lines  for  messages  3156-3299,  see  above  'Deleting  143
messages'>

This  is  what  seems  to  be  generating traffic. Offlineimap deletes
messages and then copies back. Ideas?



-- 
Regards, Ivan                          mailto:ivun at wirebyte.com




More information about the OfflineIMAP-project mailing list