Příkazy do imapsync

  1. --host1       <string> : "from" imap server. Mandatory.
  2. --port1       <int>    : port to connect on host1. Default is 143.
  3. --user1       <string> : user to login on host1. Mandatory.
  4. --authuser1   <string> : user to auth with on host1 (admin user).
  5. --password1   <string> : password for the user1. Dangerous, use --passfile1
  6. --passfile1   <string> : password file for the user1. Contains the password.
  7. --host2       <string> : "destination" imap server. Mandatory.
  8. --port2       <int>    : port to connect on host2. Default is 143.
  9. --user2       <string> : user to login on host2. Mandatory.
  10. --authuser2   <string> : user to auth with on host2 (admin user).
  11. --password2   <string> : password for the user2. Dangerous, use --passfile2
  12. --passfile2   <string> : password file for the user2. Contains the password.
  13. --noauthmd5            : don't use MD5 authentification.
  14. --authmech1   <string> : auth mechanism to use with host1:
  15.                          PLAIN, LOGIN, CRAM-MD5 etc.
  16. --authmech2   <string> : auth mechanism to use with host2. See --authmech1
  17. --ssl1                 : use an SSL connection on host1.
  18. --ssl2                 : use an SSL connection on host2.
  19. --folder      <string> : sync this folder.
  20. --folder      <string> : and this one, etc.
  21. --folderrec   <string> : sync this folder recursively.
  22. --folderrec   <string> : and this one, etc.
  23. --include     <regex>  : sync folders matching this regular expression
  24. --include     <regex>  : or this one, etc.
  25.                          in case both --include --exclude options are
  26.                          use, include is done before.
  27. --exclude     <regex>  : skips folders matching this regular expression
  28.                          Several folders to avoid:
  29.                           --exclude 'fold1|fold2|f3' skips fold1, fold2 and f3.
  30. --exclude     <regex>  : or this one, etc.
  31. --prefix1     <string> : remove prefix to all destination folders
  32.                          (usually INBOX. for cyrus imap servers)
  33.                          you can use --prefix1 if your source imap server
  34.                          does not have NAMESPACE capability.
  35. --prefix2     <string> : add prefix to all destination folders
  36.                          (usually INBOX. for cyrus imap servers)
  37.                          use --prefix2 if your target imap server does not
  38.                          have NAMESPACE capability.
  39. --regextrans2 <regex>  : Apply the whole regex to each destination folders.
  40. --regextrans2 <regex>  : and this one. etc.
  41.                          When you play with the --regextrans2 option, first
  42.                          add also the safe options --dry --justfolders
  43.                          Then, when happy, remove --dry, remove --justfolders
  44. --regexmess   <regex>  : Apply the whole regex to each message before transfer.
  45.                          Example : 's/\000/ /g' # to replace null by space.
  46. --regexmess   <regex>  : and this one.
  47. --regexmess   <regex>  : and this one, etc.
  48. --regexflag   <regex>  : Apply the whole regex to each flags list.
  49.                          Example : 's/"Junk"//g' # to remove "Junk" flag.
  50. --regexflag   <regex>  : and this one, etc.
  51. --sep1        <string> : separator in case namespace is not supported.
  52. --sep2        <string> : idem.
  53. --delete               : delete messages on source imap server after
  54.                          a successful transfer. Useful in case you
  55.                          want to migrate from one server to another one.
  56.                          With imap, delete tags messages as deleted, they
  57.                          are not really deleted. See expunge.
  58. --delete2              : delete messages on the destination imap server that
  59.                          are not on the source server.
  60. --expunge              : expunge messages on source account.
  61.                          expunge really deletes messages marked deleted.
  62.                          expunge is made at the beginning on the
  63.                          source server only. newly transferred messages
  64.                          are expunged if option --expunge is given.
  65.                          no expunge is done on destination account but
  66.                          it will change in future releases.
  67. --expunge1             : expunge messages on source account.
  68. --expunge2             : expunge messages on target account.
  69. --syncinternaldates    : sets the internal dates on host2 same as host1
  70. --buffersize  <int>    : sets the size of a block of I/O.
  71. --maxsize     <int>    : skip messages larger than <int> bytes
  72. --maxage      <int>    : skip messages older than <int> days.
  73.                          final stats (skipped) don't count older messages
  74.                          see also --minage
  75. --minage      <int>    : skip messages newer than <int> days.
  76.                          final stats (skipped) don't count newer messages
  77.                          You can do (+ are the messages selected):
  78.                          past|----maxage+++++++++++++++>now
  79.                          past|+++++++++++++++minage---->now
  80.                          past|----maxage+++++minage---->now (intersection)
  81.                          past|++++minage-----maxage++++>now (union)
  82. --skipheader  <regex>  : Don't take into account header keyword
  83.                          matching <string> ex: --skipheader 'X.*'
  84. --useheader   <string> : Use this header to compare messages on both sides.
  85.                          Ex: Message-ID or Subject or Date.
  86. --useheader   <string>   and this one, etc.
  87. --skipsize             : Don't take message size into account.
  88. --dry                  : do nothing, just print what would be done.
  89. --subscribed           : transfers subscribed folders.
  90. --subscribe            : subscribe to the folders transferred on the
  91.                          "destination" server that are subscribed
  92.                          on the "source" server.
  93. --(no)foldersizes      : Calculate the size of each "From" folder in bytes
  94.                          and message counts. Meant to be used with
  95.                          --justfoldersizes. Turned on by default.
  96. --justfoldersizes      : exit after printed the folder sizes.
  97. --syncacls             : Synchronises acls (Access Control Lists).
  98. --nosyncacls           : Does not synchronise acls. This is the default.
  99. --debug                : debug mode.
  100. --debugimap            : imap debug mode.
  101. --version              : print software version.
  102. --justconnect          : just connect to both servers and print useful
  103.                          information. Need only --host1 and --host2 options.
  104. --justfolders          : just do things about folders (ignore messages).
  105. --fast                 : be faster (just does not sync flags).
  106. --split1     <int>     : split the requests in several parts on source server.
  107.                          <int > is the number of messages handled per request.
  108.                          default is like --split1 1000
  109. --split2     <int>     : same thing on the "destination" server.
  110. --nofastio1            : don't use fastio with the "from" server.
  111. --nofastio2            : don't use fastio with the "destination" server.
  112. --timeout     <int>    : imap connect timeout.
  113. --help                 : print this.
  114.  
  115. Example: to synchronise imap account "foo" on "imap.truc.org"
  116.                      to imap account "bar" on "imap.trac.org"
  117.  
  118. /usr/bin/imapsync \
  119.    --host1 imap.truc.org --user1 foo --passfile1 /etc/secret1 \
  120.    --host2 imap.trac.org --user2 bar --passfile2 /etc/secret1
236+
Dokončených
webů
9
Let
zkušeností
7
Dní v týdnu nás
můžete kontaktovat

Tato stránka v rámci poskytování služeb využívá cookies. Nastavení používání a dostupnosti cookies můžete upravit v nastavení Vašeho prohlížeče. Více informací »