merging two imap accounts
nanooq at nanooq.org
nanooq at nanooq.org
Sun Feb 21 19:02:28 GMT 2016
Hello to all,
the documentation of offlineimap and the FAQ are absolutely worth their
name. Allow me to answer my own question to end this thread.
0.) Do backup.
1.) $ mkdir ~/archives
2.) $ mv ~/Maildir/IMAPnew/INBOX ~/archives
3.) $ mv ~/.offlineimap/Account-IMAPnew/LocalStatus/INBOX
~/archives/LocalStatus-INBOX # [0, read the stuff about sqlite]
4.) $ mv ~/.offlineimap/Repository-IMAPnew/FolderValidity/INBOX
~/archives/FolderValidity-INBOX
5.) Clean the cache $: rm -rf ~/.offlineimap/Account-IMAPnew # [1]
6.) Clean the Maildir $: rm -rf ~/Maildir/IMAPnew
7.) $: mkdir ~/Maildir/IMAPfinal
8.) $: offlineimap
9.) $: rsync --archive --verbose -P ~/Maildir/IMAPold/
~/Maildir/IMAPfinal/ # Pay attention to trailing /] this is a local
merge.
10.) $: offlineimap # this syncs the local merge to the IMAPnew-remote
server.
Lastly, I thank the community and developers for such a great programm
und documentation.
Cheers,
nanooq
[0]
http://www.offlineimap.org/doc/FAQ.html#what-is-the-uid-validity-problem-for-folder
[1] http://www.offlineimap.org/doc/backups-restore.html
Am 2016-02-16 17:47, schrieb nanooq at nanooq.org:
> Hello to all,
>
> how do I merge two different IMAP accounts of the same e-mail (as in:
> I switched hosts and redirected my domain name)?
>
> The difference is that IMAP-account (1) on hoster A stopped getting
> new mails by the end of January and a new IMAP-Account (2) was opened
> on hoster B on the first of February. They were both managing emails
> for the same address, therefore I wonder, how to merge the old one
> into the new one.
> Without running into an UID validity problem. That's what I get, when
> switching .offlineimaprc from one account to the other.
>
> I am looking forward to your answer.
>
> Thank you in advance,
>
> nanooq
>
> _______________________________________________
> OfflineIMAP-project mailing list:
> OfflineIMAP-project at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project
>
> OfflineIMAP homepages:
> - https://github.com/OfflineIMAP
> - http://offlineimap.org
More information about the OfflineIMAP-project
mailing list