MBOX-Line: From jkt at flaska.net  Mon Jan  5 10:37:52 2015
To: imap-protocol@u.washington.edu
From: =?iso-8859-1?Q?Jan_Kundr=E1t?= <jkt@flaska.net>
Date: Fri Jun  8 12:34:53 2018
Subject: [Imap-protocol]
	=?iso-8859-1?q?Condstore=2C_Gmail_and_mod=5Fseq?=
In-Reply-To: <CAKtzAO7HFR3X0fcweafN-stN1Uz_-UaoY9CfrGW_gSMXxMQBTA@mail.gmail.com>
References: <CAKtzAO6+j26Z_uhfbQhisbqyzdO-hd=dgTWsQqK0YCJKhR+2GQ@mail.gmail.com>
	<ab55b321-8cf0-46d5-9b7c-3747d77c6250@flaska.net>
	<CAKtzAO6h+wgdvWAT1-56R06zxQr9+vEJB0VFWTS29u9t39CKrA@mail.gmail.com>
	<c8f8021a-fd03-4691-9fb8-2cf24a403ad2@flaska.net>
	<CAKtzAO7HFR3X0fcweafN-stN1Uz_-UaoY9CfrGW_gSMXxMQBTA@mail.gmail.com>
Message-ID: <14db4ce6-e0d8-46b9-8a4a-ccb5500e5f18@flaska.net>

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/

