Offlineimap creates additional labels in Gmail and then complains about their UID validity
dimpase+olimap at gmail.com
Sun Oct 21 19:43:32 BST 2012
On Sun, Oct 21, 2012 at 07:54:53PM +0200, Rafał Ochmański wrote:
> Problem appeared after upgrading Ubuntu to 12.10 and offlineimap to
> 6.5.4. It's not particularly severe but gets a little messy.
> I have labels in my main Gmail account named after my other e-mail
> addresses under another label 'aliasy', for example
> aliasy/rafal at ochmanski.com. When syncing all labels with offline imap
> it correctly creates locally a folder aliasy.rafal at ochmanski.com and
> downloads the messages but also apparently creates remotely (in the
> Gmail account, that is) a folder/label aliasy/rafal at ochmanski/com
> (note the slash instead of the dot before com) and then complains
> about its UID validity https://gist.github.com/f16ec751cccba1eb27cd
> I removed those labels (with slashes in place of dots here and there)
> but they reappear after offlineimap run. I'm assuming they're being
> recreated in the process of syncing.
you might disable creation of remote folders by
using the option createfolders.
E.g. I have a similar kind of Gmail setup, and to prevent
this kind of thing, I have
type = Gmail
remoteuser = ....
in the part of .offlineimaprc
specifying the remote Gmail account.
This of course will prevent any new imap folders you create locally
to propagate to Gmail, but, OK, if you don't ever do this it's OK.
> Was there a change in the way Gmail's IMAP is being treated? Or did I
> previously got somehow lucky with the configuration? I'm pretty sure I
> haven't changed anything https://gist.github.com/7e5af06945bd8d92470b
> What other info should I include?
More information about the OfflineIMAP-project