On 09 Apr 2015, at 23:14, Peer Heinlein p.heinlein@heinlein-support.de wrote:
Hi,
I don't completly understand
http://wiki2.dovecot.org/Migration/Gmail
I can't find the documentation for the -a and the -F Flag.
I'd like to migrate ONLY archived mails from an existing gmail-Account. So I'd have to import all Mails from the \ALL-Folder that does NOT have any virtual folder flags set.
I tried to use this command:
doveadm -D -o imapc_user=user@example.com -o pop3c_user=user@exampe.com -o imapc_password=secret -o pop3c_password=secret -o imapc_host=imap.googlemail.com -v backup -m '[Gmail]/Tutti i messaggi' -F '-$GmailHaveLabels' -x \Flagged -x \Junk -x \Trash -x \Important -R -u user@example.com imapc:
But it looks like it's importing too many mails and not only the archived mails without Flags.
How do I have do understand
-F '-$GmailHaveLabels ??
Is it "that NOT have $GmailHaveLabels"?
Yes. I think the part you're missing is having imapc_features=gmail-migration setting which actually sets that flag.
And: Is there any better way to address the \ALL-Folder? I can use "-x \All" to exclude that folder, but it looks like I can't use "-m \All" to select that folder.
I think \All should work for both -m and -x in v2.2.16..