On Thu, Nov 21, 2013 at 09:00:41PM +0100, Oswald Buddenhagen <o...@kde.org> 
wrote:
> On Thu, Nov 21, 2013 at 04:04:12PM +0100, Giulio Eulisse wrote:
> > Looking with -V it seems to be deleting emails 1 by one and it takes a 
> > couple 
> > of second for each.
> > 
> that sounds quite wrong. you should see really long UID EXPUNGE lines
> with many UIDs on them.
> please paste the start of the session log and some of the
> expunges+responses. or just send me the log in private.
 
I have the same problem. Gmail with hundreds of thousands of emails under 
labels (root+cron spam) takes too long to EXPUNGE one by one.

Last night I verify that the 180k emails (or so) are not worth my reading, and 
I set the (T) flag locally in mutt, write the Maildir (takes a while even on an 
SSD :) and then go to bed. The next morning it's still syncing to Gmail on the 
one big label (toor).

Oswald, I've put the logs here: 
https://spodder.com/~yeled/mbsync.log.1385814700.gz but they don't show what's 
going on with timing. Everything rockets along until the EXPUNGE, which takes 
almost an entire second each iteration. I ^C after a few.

This is homebrew isync HEAD from 2 days ago.. "isync 1.1.0"

AFAICT it is Gmail's fault for being so slow at EXPUNGing each email one by 
one...

Here is a different run byt same label/mailbox without -VD

    Selecting master toor...
    Selecting slave toor...
    Loading master...
    Loading slave...
    slave: 8382 messages, 1019 recent
    master: 194044 messages, 0 recent
    Synchronizing...
    M: +0/0 *8/184898 #0/0  S: +667/667 *0/0 #0/0

The S: +667 comes in pretty fast,
The M: *x/184898 increments one a second or less, so I'm guessing this is the 
EXPUNGE responses.

My config is:

    FSync None

    IMAPAccount domain
    Host imap.gmail.com
    User char...@domain.com
    Pass foo
    UseIMAPS yes
    CertificateFile /Users/charlie/Maildir/.mbsync.gmail.crt

    IMAPStore domain-remote
    Account domain

    MaildirStore domain-local
    Path /Users/charlie/Maildir/
    # just set it to ~/Maildir/
    #Inbox /Users/charlie/Mail/domain/INBOX

    Channel domain
    Master :domain-remote:
    Slave :domain-local:
    # Exclude internal [Gmail] folders (as we sync it below)
    Patterns * ![Gmail]*
    Create Slave
    Sync All
    Expunge Both
    SyncState *

    Channel domain-sent
    # sync the fake sent emails folder
    Master ":domain-remote:[Gmail]/Sent Mail"
    Slave :domain-local:sent-mail
    Create Slave
    Expunge Slave
    Sync All

    Channel domain-drafts
    # sync the drafts emails folder
    Master ":domain-remote:[Gmail]/Drafts"
    Slave :domain-local:drafts
    Create Slave
    Expunge Both
    Sync All

    Channel domain-trash
    # sync the Trash folder
    Master ":domain-remote:[Gmail]/Trash"
    Slave :domain-local:trash
    Create Slave
    Expunge Both
    Sync All

    Channel domain-spam
    # sync the Spam folder
    Master ":domain-remote:[Gmail]/Spam"
    Slave :domain-local:spam
    Create Slave
    Expunge Both
    Sync All



-- 
 0x8486EDA8
 http://spodder.com/

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to