Sync Failure due to UID error with gmail?

Jeremiah Via jeremiah.via at
Wed Dec 12 17:53:30 GMT 2012

Hi all,

I fixed my problem, so I figured I would follow up on it.

I think there is something a bit wonky about Gmail and UIDs---perhaps due
to some bug in one of the many clients I have used over the years. 

This error was not limited to offlineimap; I was able to reproduce it
with fetchmail and mbsync.

To solve it, I went and delete some really old emails. After I did that,
sync worked just fine. Odd. It would be nice if there was a way the
error would spit out the email subject or something, to allow for a more
targeted deletion.


On 2012-11-30, Oon-Ee Ng wrote:
> On Fri, Nov 30, 2012 at 2:41 PM, Marc MERLIN <marc at> wrote:
>> On Fri, Nov 30, 2012 at 02:38:31PM +0800, Oon-Ee Ng wrote:
>>> On Fri, Nov 30, 2012 at 2:27 PM, Marc MERLIN <marc at> wrote:
>>> > On Sat, Nov 24, 2012 at 04:22:25PM -0800, Marc MERLIN wrote:
>>> >> I've found gmail to be flaky, maybe with bigger folders (1K to 100K)
>>> >> For me it works if I retry enough times, but I sure get randomly
>>> >> disconnected multiple times a day.
>>> >
>>> > I'm curious.
>>> >
>>> > Does syncing with gmail not suck for some?
>>> > Is it actually reliable without disconnections, hangs for anyone?
>>> >
>>> > Marc
>>> *raises hand*
>>> And I've got some pretty big folders (number of emails wise, not size
>>> wise) as well, 3-4k?
>>> Of course, my new employer doesn't allow IMAP downloads, so this is
>>> sort of a moot point, but it does work reliably when I do get my
>>> laptop on other networks.
>> Wait, I'm confused, your employer?
>> I'm talking about doing 2 way imap sync on of multiple folders.
>> Are you on google for your domain using gmail with your employer but without
>> imap downloads?
>> You lost me here.
>> Marc
> My laptop connects to the internet (and hence google's servers)
> through my employer's routers, which filter basically everything but
> HTTP and HTTPS. This of course means no IMAP, and I've been
> negotiating for IMAP access for months now.
> The sync I run is 2-way to gmail, multiple folders (multiple accounts even).

More information about the OfflineIMAP-project mailing list