2015-05-28 19:04:57 +02:00
|
|
|
#!/bin/cat
|
2018-05-07 16:04:23 +02:00
|
|
|
# $Id: FAQ.Domino.txt,v 1.9 2018/03/13 03:22:55 gilles Exp gilles $
|
2016-09-19 17:15:41 +02:00
|
|
|
|
|
|
|
This documentation is also at http://imapsync.lamiral.info/#doc
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2016-01-22 17:52:28 +01:00
|
|
|
=============================
|
|
|
|
Imapsync tips for Domino.
|
|
|
|
=============================
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
|
2017-09-23 23:54:48 +02:00
|
|
|
=======================================================================
|
|
|
|
Q. From Domino Notes to XXX
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2018-05-07 16:04:23 +02:00
|
|
|
R1. Use --domino1, like this:
|
|
|
|
|
|
|
|
imapsync ... --domino1
|
|
|
|
|
|
|
|
|
|
|
|
R2. Or use the following options:
|
|
|
|
|
2015-05-28 19:04:57 +02:00
|
|
|
On Windows use:
|
|
|
|
|
2017-09-23 23:54:48 +02:00
|
|
|
imapsync.exe ... --sep1 "\\" --prefix1 "" --messageidnodomain
|
2015-05-28 19:04:57 +02:00
|
|
|
|
|
|
|
On Unix use:
|
|
|
|
|
2017-09-23 23:54:48 +02:00
|
|
|
imapsync ... --sep1 '\' --prefix1 '' --messageidnodomain
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2017-09-23 23:54:48 +02:00
|
|
|
=======================================================================
|
|
|
|
Q. From XXX to Domino Notes
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2018-05-07 16:04:23 +02:00
|
|
|
R1. Use --domino2, like this:
|
|
|
|
|
|
|
|
imapsync ... --domino2
|
|
|
|
|
|
|
|
|
|
|
|
R2. Or follow this:
|
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
Domino doesn't accept INBOX subfolders.
|
|
|
|
|
|
|
|
On Windows:
|
2015-05-28 19:04:57 +02:00
|
|
|
|
|
|
|
imapsync.exe ... ^
|
2017-09-23 23:54:48 +02:00
|
|
|
--sep2 "\\" --prefix2 "" --messageidnodomain ^
|
2015-12-03 18:16:32 +01:00
|
|
|
--regextrans2 "s,^Inbox\\(.*),$1,i"
|
|
|
|
|
|
|
|
On Unix:
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
imapsync ... \
|
2017-09-23 23:54:48 +02:00
|
|
|
--sep2 '\' --prefix2 '' --messageidnodomain \
|
2015-12-03 18:16:32 +01:00
|
|
|
--regextrans2 's,^Inbox\\(.*),$1,i'
|
2015-05-28 19:04:57 +02:00
|
|
|
|
|
|
|
If you want to sync the complete host1 mailbox in a subfolder called OLDBOX use:
|
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
On Windows:
|
2015-05-28 19:04:57 +02:00
|
|
|
imapsync.exe ... ^
|
2017-09-23 23:54:48 +02:00
|
|
|
--sep2 "\\" --prefix2 "" --messageidnodomain ^
|
2015-12-03 18:16:32 +01:00
|
|
|
--subfolder2 "OLDBOX" --justfolders --dry
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
On Unix:
|
|
|
|
imapsync ... \
|
2017-09-23 23:54:48 +02:00
|
|
|
--sep2 '\' --prefix2 '' --messageidnodomain \
|
2015-12-03 18:16:32 +01:00
|
|
|
--subfolder2 'OLDBOX' --justfolders --dry
|
|
|
|
|
2015-05-28 19:04:57 +02:00
|
|
|
If the output is correct for you then remove --dry and have a run.
|
|
|
|
Verify the folder hierarchy is good on host2 then remove --justfolders to
|
|
|
|
sync the messages.
|
|
|
|
|
|
|
|
For Domino with imapsync and Domino on Linux:
|
|
|
|
(Thanks to Zafer)
|
|
|
|
|
|
|
|
R. We've migrated about 5000 users from cyrus to lotus domino 853!
|
|
|
|
Mails are being copied into the new created lotus domino mailbox
|
|
|
|
retaining the existing folder structure from the old mail database.
|
|
|
|
This means that sent mails can be found in the sent folder and
|
|
|
|
mails from the old inbox are copied into the new inbox
|
|
|
|
We also marked migrated mails with the header Migratedbyus
|
|
|
|
|
|
|
|
For Domino 853FP6 on Linux, we used this command on Unix:
|
|
|
|
|
|
|
|
imapsync \
|
|
|
|
--host1 hhh1 --user1 uuu1 --password1 ppp1 \
|
|
|
|
--host2 hhh2 --user2 uuu2 --password2 ppp2 \
|
|
|
|
--exclude "^INBOX/Trash" --exclude 'Junk|Drafts' \
|
|
|
|
--regextrans2 's#^INBOX/Sent$#^Sent#' \
|
2017-09-23 23:54:48 +02:00
|
|
|
--prefix2 "" --sep2 "\/" --messageidnodomain \
|
2015-05-28 19:04:57 +02:00
|
|
|
--regexmess 's{\A(.*?(?! ^$))^Date:(.*?)$}{$1Migratedbyus:$2\nx-MailDate:$2}gxms'
|
|
|
|
|
|
|
|
|
2017-09-23 23:54:48 +02:00
|
|
|
=======================================================================
|
|
|
|
=======================================================================
|