FAQ.Domino.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. #!/bin/cat
  2. # $Id: FAQ.Domino.txt,v 1.13 2020/09/06 20:33:46 gilles Exp gilles $
  3. This documentation is also available online at
  4. https://imapsync.lamiral.info/FAQ.d/
  5. https://imapsync.lamiral.info/FAQ.d/FAQ.Domino.txt
  6. =======================================================================
  7. Imapsync tips for Domino.
  8. =======================================================================
  9. Questions answered in this FAQ are:
  10. Q. How to use imapsync from Domino Notes to XXX?
  11. Q. How to use imapsync from XXX to Domino Notes?
  12. Q. Whan I use --maxage imapsync sees no messages at all.
  13. What can I do?
  14. Q. My usual email software client like Thunderbird sees more messages
  15. than imapsync. How can it be possible?
  16. Now the questions again with their answers:
  17. =======================================================================
  18. Q. How to use imapsync from Domino Notes to XXX?
  19. R1. Use --domino1, like this:
  20. imapsync ... --domino1
  21. R2. Or use the following options:
  22. On Windows use:
  23. imapsync.exe ... --sep1 "\\" --prefix1 "" --messageidnodomain
  24. On Unix use:
  25. imapsync ... --sep1 '\' --prefix1 '' --messageidnodomain
  26. =======================================================================
  27. Q. How to use imapsync from XXX to Domino Notes
  28. R1. Use --domino2, like this:
  29. imapsync ... --domino2
  30. R2. Or follow this:
  31. Domino doesn't accept INBOX subfolders.
  32. On Windows:
  33. imapsync.exe ... ^
  34. --sep2 "\\" --prefix2 "" --messageidnodomain ^
  35. --regextrans2 "s,^Inbox\\(.*),$1,i"
  36. On Unix:
  37. imapsync ... \
  38. --sep2 '\' --prefix2 '' --messageidnodomain \
  39. --regextrans2 's,^Inbox\\(.*),$1,i'
  40. If you want to sync the complete host1 mailbox in a subfolder called OLDBOX use:
  41. On Windows:
  42. imapsync.exe ... ^
  43. --sep2 "\\" --prefix2 "" --messageidnodomain ^
  44. --subfolder2 "OLDBOX" --justfolders --dry
  45. On Unix:
  46. imapsync ... \
  47. --sep2 '\' --prefix2 '' --messageidnodomain \
  48. --subfolder2 'OLDBOX' --justfolders --dry
  49. If the output is correct for you then remove --dry and have a run.
  50. Verify the folder hierarchy is good on host2 then remove --justfolders to
  51. sync the messages.
  52. For Domino with imapsync and Domino on Linux:
  53. (Thanks to Zafer)
  54. R. We've migrated about 5000 users from cyrus to lotus domino 853!
  55. Mails are being copied into the new created lotus domino mailbox
  56. retaining the existing folder structure from the old mail database.
  57. This means that sent mails can be found in the sent folder and
  58. mails from the old inbox are copied into the new inbox
  59. We also marked migrated mails with the header Migratedbyus
  60. For Domino 853FP6 on Linux, we used this command on Unix:
  61. imapsync \
  62. --host1 hhh1 --user1 uuu1 --password1 ppp1 \
  63. --host2 hhh2 --user2 uuu2 --password2 ppp2 \
  64. --exclude "^INBOX/Trash" --exclude 'Junk|Drafts' \
  65. --regextrans2 's#^INBOX/Sent$#^Sent#' \
  66. --prefix2 "" --sep2 "\/" --messageidnodomain \
  67. --regexmess 's{\A(.*?(?! ^$))^Date:(.*?)$}{$1Migratedbyus:$2\nx-MailDate:$2}gxms'
  68. =======================================================================
  69. Q. When I use --maxage option, imapsync sees no messages at all.
  70. What can I do?
  71. R. Use --noabletosearch
  72. imapsync ... --noabletosearch
  73. Same thing with --minage
  74. =======================================================================
  75. Q. On Domino this errors occurs:
  76. "Login failure, cannot convert Mailbox: code 02:46"
  77. R. Follow
  78. https://atnotes.de/index.php?topic=44888.0
  79. Use:
  80. load convert -e mail\mailfilename.nsf
  81. =======================================================================
  82. Q. My usual email software client like Thunderbird sees more messages
  83. than imapsync. How can it be possible?
  84. R. (Issue given and solved by Falko Veith)
  85. "As you might know, it is possible to replicate databases, aka mailboxes,
  86. across domino servers. THAT is the explanation. Thunderbird and some Notes
  87. clients may be connected to one server and imapsync to another.
  88. As funny and simply the solution is, as mysterious is why those two
  89. databases are not completely in sync - new emails are replicated but not
  90. the old ones. One mystery solved - and a new one to go.
  91. Thanks to Falko Veith for this question and the answer!
  92. =======================================================================