[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [imapsync] Migrating between gmail accounts


From Gilles LAMIRAL <gilles dot lamiral at laposte dot net>
Subject Re: [imapsync] Migrating between gmail accounts
Date Sat, 21 Aug 2010 15:36:08 +0200

Hello Adam,

Currently in the middle of a largely-successful transfer, and I'll post details when it's done.

Good.


However, there's one bizarre problem.

Ok.


I first synced the "All Mail" folder from the first gmail account to a new folder on the second gmail account, so that all the transferred mail would have a label saying "transferredmail" or some such.

Nice trick.


That way when I sync the other folders (labels), all it does is apply labels to messages that are already in the second gmail account.

gmail does labels, imapsync doesn't apply labels. imapsync transfers messages again and again with each label (folder). This is stupid of course. Just because gmail made the stupid design decision to code labels as imap folders instead of imap keywords.

I've just added a WANTED! "Efficient Gmail backup" on
http://www.linux-france.org/prj/imapsync/#WANTED

240$ rewards for the guy that will code it, paid by the guys
that need it. You can promote this call on gmail users lists,
it's where gmail users are and maybe need the efficient feature.

Here are the extra commands I used:

-authmech1 LOGIN -authmech2 LOGIN \
-allowsizemismatch \
-folder 'school' \
-fast \
-nofoldersizes

although tweaks - such as adding "-useheader 'Message-Id' -skipsize \" or taking away "-fast" have done nothing to improve the situation.

--useheader 'Message-Id' is faster and use less memory => Good.

--skipsize --allowsizemismatch are on by default
=> useless to add.

--fast doesn't sync flags on second runs
=> be careful on active mailboxes.

Now, since all of the transferred mail has a label "transferredmail", I can easily find the duplicates in a gmail search (all messages which lack label:transferredmail), but then the originals don't have the proper labels.

Any thoughts on why imapsync is duplicating certain messages? I can't tell what the pattern is.

gmail duplicates certain messages. imapsync currently duplicates all messages.

--
Au revoir,                             09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06