isync.1 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. .ig
  2. \" isync - mbsync wrapper: IMAP4 to Maildir mailbox synchronizer
  3. \" Copyright (C) 2000-2002 Michael R. Elkins <me@mutt.org>
  4. \" Copyright (C) 2002-2004 Oswald Buddenhagen <ossi@users.sf.net>
  5. \"
  6. \" This program is free software; you can redistribute it and/or modify
  7. \" it under the terms of the GNU General Public License as published by
  8. \" the Free Software Foundation; either version 2 of the License, or
  9. \" (at your option) any later version.
  10. \"
  11. \" This program is distributed in the hope that it will be useful,
  12. \" but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. \" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. \" GNU General Public License for more details.
  15. \"
  16. \" You should have received a copy of the GNU General Public License
  17. \" along with this program; if not, write to the Free Software
  18. \" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. \"
  20. ..
  21. .TH isync 1 "2004 Mar 27"
  22. ..
  23. .SH NAME
  24. isync - synchronize IMAP4 and Maildir mailboxes
  25. ..
  26. .SH SYNOPSIS
  27. \fBisync\fR [\fIoptions\fR ...] {\fImailbox\fR ...|\fI-a\fR|\fI-l\fR}
  28. ..
  29. .SH DESCRIPTION
  30. \fBisync\fR is a command line application which synchronizes local
  31. Maildir mailboxes with remote IMAP4 mailboxes, suitable for use in
  32. IMAP-disconnected mode. Multiple copies of the remote IMAP4 mailboxes can
  33. be maintained, and all flags are synchronized.
  34. .br
  35. \fBisync\fR is only a wrapper binary around \fBmbsync\fR to simplify upgrades.
  36. It will automatically migrate the UID mapping from previous versions of
  37. \fBisync\fR (even before 0.8) to the new format, and transparently call
  38. \fBmbsync\fR. If you were using \fBisync\fR version 0.8 or 0.9.x you might
  39. want to use \fBmdconvert\fR to convert the mailboxes to the more efficient
  40. \fBnative\fR UID storage scheme after migrating them.
  41. ..
  42. .SH OPTIONS
  43. .TP
  44. \fB-c\fR, \fB--config\fR \fIfile\fR
  45. Read configuration from \fIfile\fR.
  46. By default, the configuration is read from ~/.isyncrc if it exists.
  47. .TP
  48. \fB-1\fR, \fB--one-to-one\fR
  49. Instead of using the mailbox specifications in ~/.isyncrc, isync will pick up
  50. all mailboxes from the local directory and remote folder and map them 1:1
  51. onto each other according to their names.
  52. .TP
  53. \fB-I\fR, \fB--inbox\fR \fImailbox\fR
  54. Exception to the 1:1 mapping created by -1: the special IMAP mailbox \fIINBOX\fR
  55. is mapped to the local \fImailbox\fR (relative to the maildir).
  56. .TP
  57. \fB-a\fR, \fB--all\fR
  58. Synchronize all mailboxes (either specified in ~/.isyncrc or determined by the
  59. 1:1 mapping).
  60. .TP
  61. \fB-l\fR, \fB--list\fR
  62. Don't synchronize anything, but list all mailboxes and exit.
  63. .TP
  64. \fB-L\fR, \fB--create-local\fR
  65. Automatically create the local Maildir mailbox if it doesn't already
  66. exist.
  67. .TP
  68. \fB-R\fR, \fB--create-remote\fR
  69. Automatically create the remote IMAP mailbox if it doesn't already exist.
  70. .TP
  71. \fB-C\fR, \fB--create\fR
  72. Automatically create any mailboxes if they don't already exist.
  73. This is simply a combination of -L and -R.
  74. .TP
  75. \fB-d\fR, \fB--delete\fR
  76. Causes \fBisync\fR to propagate message deletions.
  77. By default, \fIdead\fR messages are \fBnot\fR deleted.
  78. .TP
  79. \fB-e\fR, \fB--expunge\fR
  80. Causes \fBisync\fR to permanently remove all messages marked for deletion.
  81. By default, \fIdeleted\fR messages are \fBnot\fR expunged.
  82. .TP
  83. \fB-f\fR, \fB--fast\fR
  84. Only fetch new messages existing on the server into the local mailbox.
  85. Message deletions and flag changes will not be propagated.
  86. .TP
  87. \fB-h\fR, \fB--help\fR
  88. Displays a summary of command line options
  89. .TP
  90. \fB-p\fR, \fB--port\fR \fIport\fR
  91. Specifies the port on the IMAP server to connect to (default: 143 for imap,
  92. 993 for imaps)
  93. .TP
  94. \fB-q\fR, \fB--quiet\fR
  95. Suppress informational messages.
  96. If specified twice, suppress warning messages as well.
  97. .TP
  98. \fB-r\fR, \fB--remote\fR \fIbox\fR
  99. Specifies the name of the remote IMAP mailbox to synchronize with
  100. (Default: INBOX)
  101. .TP
  102. \fB-s\fR, \fB--host\fR [\fBimaps:\fR]\fIhost\fR
  103. Specifies the hostname of the IMAP server
  104. .TP
  105. \fB-u\fR, \fB--user\fR \fIuser\fR
  106. Specifies the login name to access the IMAP server (default: $USER)
  107. .TP
  108. \fB-M\fR, \fB--maildir\fR \fIdir\fR
  109. Specifies the location for your local mailboxes.
  110. .TP
  111. \fB-F\fR, \fB--folder\fR \fIfolder\fR/
  112. Specifies the location for your remote mailboxes.
  113. .TP
  114. \fB-v\fR, \fB--version\fR
  115. Displays \fBisync\fR version information.
  116. .TP
  117. \fB-V\fR, \fB--verbose\fR
  118. Enables \fIverbose\fR mode, which displays the IMAP4 network traffic.
  119. .TP
  120. \fB-D\fR, \fB--debug\fR
  121. Enable printing of \fIdebug\fR messages.
  122. .TP
  123. \fB-w\fR, \fB--write\fR
  124. Don't run \fBmbsync\fR, but instead write a permanent config file for it.
  125. The UID mappings of all configured mailboxes will be migrated.
  126. Note that some command line options that would affect an actual sync operation
  127. will be incorporated into the new config file as well.
  128. The name of the new config file is determined by replacing the last occurrence
  129. of "isync" with "mbsync", or appending ".mbsync" if "isync" was not found.
  130. .TP
  131. \fB-W\fR, \fB--writeto\fR \fIfile\fR
  132. Like \fB-w\fR, but use the specified name for the new config file.
  133. ..
  134. .SH CONFIGURATION
  135. \fBisync\fR by default reads \fI~/.isyncrc\fR to load configuration data.
  136. Each non-empty line of the configuration file that does not start with a
  137. hash mark consists of a command.
  138. The following commands are understood:
  139. .TP
  140. \fBMailbox\fR \fIpath\fR
  141. Defines a local Maildir mailbox. All configuration commands following this
  142. line, up until the next \fIMailbox\fR command, apply to this mailbox only.
  143. ..
  144. .TP
  145. \fBHost\fR [\fBimaps:\fR]\fIname\fR
  146. Defines the DNS name or IP address of the IMAP server. If the hostname is
  147. prefixed with \fBimaps:\fR the connection is assumed to be a SSL connection
  148. to port 993 (though you can change this by placing a \fBPort\fR command
  149. \fBafter\fR the \fBHost\fR command).
  150. Note that modern servers support SSL on the default port 143.
  151. \fBisync\fR will always attempt to use SSL if available.
  152. ..
  153. .TP
  154. \fBPort\fR \fIport\fR
  155. Defines the TCP port number of the IMAP server (Default: 143 for imap,
  156. 993 for imaps)
  157. ..
  158. .TP
  159. \fBBox\fR \fImailbox\fR
  160. Defines the name of the remote IMAP mailbox associated with the local
  161. Maildir mailbox (Default: INBOX)
  162. ..
  163. .TP
  164. \fBUser\fR \fIusername\fR
  165. Defines the login name on the IMAP server (Default: current user)
  166. ..
  167. .TP
  168. \fBPass\fR \fIpassword\fR
  169. Defines the password for \fIusername\fR on the IMAP server.
  170. Note that this option is \fBNOT\fR required.
  171. If no password is specified in the configuration file, \fBisync\fR
  172. will prompt you for it.
  173. ..
  174. .TP
  175. \fBAlias\fR \fIstring\fR
  176. Defines an alias for the mailbox which can be used as a shortcut on the
  177. command line.
  178. ..
  179. .TP
  180. \fBCopyDeletedTo\fR \fImailbox\fR
  181. Specifies the remote IMAP mailbox to copy deleted messages to prior to
  182. expunging (Default: none).
  183. ..
  184. .TP
  185. \fBDelete\fR \fIyes\fR|\fIno\fR
  186. Specifies whether message deletions are propagated. (Default: no).
  187. \fBNOTE:\fR The \fI-d\fR command line option overrides this setting when
  188. set to \fIno\fR.
  189. ..
  190. .TP
  191. \fBExpunge\fR \fIyes\fR|\fIno\fR
  192. Specifies whether deleted messages are expunged. (Default: no).
  193. \fBNOTE:\fR The \fI-e\fR command line option overrides this setting when
  194. set to \fIno\fR.
  195. ..
  196. .TP
  197. \fBMailDir\fR \fIdirectory\fR
  198. Specifies the location of your local mailboxes if a relative path is
  199. specified in a \fIMailbox\fR command (Default: \fI~\fR).
  200. \fBNOTE:\fR This directive is allowed only in the \fIglobal\fR
  201. section (see below).
  202. ..
  203. .TP
  204. \fBFolder\fR \fIdirectory\fR/
  205. Specifies the location of your IMAP mailboxes
  206. specified in \fIBox\fR commands (Default: \fI""\fR).
  207. \fBNOTE:\fR You \fBmust\fR append the hierarchy delimiter (usually
  208. a slash) to this specification.
  209. \fBNOTE 2:\fR This directive is allowed only in the \fIglobal\fR
  210. section (see below).
  211. ..
  212. .TP
  213. \fBMaxMessages\fR \fIcount\fR
  214. Sets the number of messages \fBisync\fR should keep in the local copy of a
  215. mailbox.
  216. This is useful for mailboxes where you keep a complete archive on the server,
  217. but want to mirror only the last messages (for instance, for mailing lists).
  218. The messages that were the first to arrive in the mailbox (independently of the
  219. actual date of the message) will be deleted first.
  220. Messages that are flagged (marked as important) and recent messages will not be
  221. automatically deleted.
  222. If \fIcount\fR is 0, the maximum number of messages is \fBunlimited\fR.
  223. (Default: 0)
  224. ..
  225. .TP
  226. \fBMaxSize\fR \fIbytes\fR
  227. Messages larger than that many bytes will not be transferred over the wire.
  228. This is useful for weeding out messages with large attachments.
  229. If \fIbytes\fR is 0, the maximum file size is \fBunlimited\fR.
  230. (Default: 0)
  231. ..
  232. .TP
  233. \fBTunnel\fR \fIcommand\fR
  234. Specify a command to run to establish a connection rather than opening a TCP
  235. socket. This allows you to run an IMAP session over an SSH tunnel, for
  236. example.
  237. .TP
  238. \fBUseNamespace\fR \fIyes\fR|\fIno\fR
  239. Selects whether the server's first "personal" NAMESPACE should be prefixed to
  240. mailbox names. Disabling this makes sense for some broken IMAP servers.
  241. This option is meaningless if a \fIFolder\fR was specified.
  242. (Default: \fIyes\fR)
  243. ..
  244. .TP
  245. \fBRequireCRAM\fR \fIyes\fR|\fIno\fR
  246. If set to \fIyes\fR, \fBisync\fR will abort the connection if no CRAM-MD5
  247. authentication is possible. (Default: \fIno\fR)
  248. ..
  249. .TP
  250. \fBRequireSSL\fR \fIyes\fR|\fIno\fR
  251. \fBisync\fR will abort the connection if a TLS/SSL session cannot be
  252. established with the IMAP server. (Default: \fIyes\fR)
  253. ..
  254. .TP
  255. \fBCertificateFile\fR \fIpath\fR
  256. File containing X.509 CA certificates used to verify server identities.
  257. ..
  258. .TP
  259. \fBUseSSLv2\fR \fIyes\fR|\fIno\fR
  260. Should \fBisync\fR use SSLv2 for communication with the IMAP server over SSL?
  261. (Default: \fIyes\fR if the imaps port is used, otherwise \fIno\fR)
  262. ..
  263. .TP
  264. \fBUseSSLv3\fR \fIyes\fR|\fIno\fR
  265. Should \fBisync\fR use SSLv3 for communication with the IMAP server over SSL?
  266. (Default: \fIyes\fR if the imaps port is used, otherwise \fIno\fR)
  267. ..
  268. .TP
  269. \fBUseTLSv1\fR \fIyes\fR|\fIno\fR
  270. Should \fBisync\fR use TLSv1 for communication with the IMAP server over SSL?
  271. (Default: \fIyes\fR)
  272. ..
  273. .TP
  274. \fBOneToOne\fR
  275. \fBisync\fR will ignore any \fIMailbox\fR specifications and instead pick up
  276. all mailboxes from the local \fIMailDir\fR and remote \fIFolder\fR and map
  277. them 1:1 onto each other according to their names.
  278. \fBNOTE:\fR This directive is allowed only in the \fIglobal\fR
  279. section (see below).
  280. ..
  281. .TP
  282. \fBInbox\fR \fImailbox\fR
  283. Exception to the OneToOne mapping: the special IMAP mailbox \fIINBOX\fR
  284. is mapped to the local \fImailbox\fR (relative to the \fIMailDir\fR).
  285. \fBNOTE:\fR This directive is only meaningful in the \fIglobal\fR
  286. section (see below).
  287. ..
  288. .P
  289. Configuration commands that appear prior to the first \fBMailbox\fR
  290. command are considered to be \fIglobal\fR
  291. options which are used as defaults when those specific options are not
  292. specifically set for a defined Mailbox. For example, if you use the same
  293. login name for several IMAP servers, you can put a \fBUser\fR command before
  294. the first \fBMailbox\fR command, and then leave out the \fBUser\fR command
  295. in the sections for each mailbox.
  296. \fBisync\fR will then use the global value by default.
  297. ..
  298. .SH FILES
  299. .TP
  300. .B ~/.isyncrc
  301. Default configuration file
  302. ..
  303. .SH BUGS
  304. The configuration file takes precedence over command line options.
  305. .br
  306. Use -c /dev/null to work around.
  307. .P
  308. See the \fBINHERENT PROBLEMS\fR section in the \fBmbsync\fR man page, too.
  309. ..
  310. .SH SEE ALSO
  311. mbsync(1), mdconvert(1), mutt(1), maildir(5)
  312. .P
  313. Up to date information on \fBisync\fR can be found at http://isync.sf.net/
  314. ..
  315. .SH AUTHOR
  316. Written by Michael R. Elkins <me@mutt.org>,
  317. .br
  318. maintained by Oswald Buddenhagen <ossi@users.sf.net>.