isync.1 11 KB

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