isync.1 12 KB

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