Re: [Imap-protocol] Condstore, Gmail and mod_seq

Jan Kundrát <[email protected]> Mon, 05 Jan 2015 19:37:52 +0100
Newsgroups gmane.mail.imap.general
Message-ID <[email protected]>
On Monday, 5 January 2015 18:50:32 CEST, Daniel Piché wrote:
> So we poll each account periodically using condstore to capture label
> changes. It's working perfectly fine however it doesn't report when
> messages are permanently deleted. So we resync account a few times per day
> ("CONDSTORE CHANGEDSINCE 1") to see if some messages have been deleted.

But doing that will very likely get you a list of all messages which are 
present in a mailbox right now. That's a very poor way of obtaining that 
information.

RFC 3501 and RFC 4549 contain a lot of tips on how to sync efficiently.

> Some accounts have hundred of thousands of message so that means we have a
> lot of server side processing to do. So my plan was to save the mod_seq
> when the account is entered in our system and use that point in time to
> resync accounts. That way we never have use a mod_seq of 1 which returns a
> lot of messages we don't care about.

Use QRESYNC and read https://tools.ietf.org/html/rfc7162#section-3.2.6 .

Cheers,
Jan

-- 
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/
_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol