isync.1 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. .ig
  2. \" isync - IMAP4 to maildir mailbox synchronizer
  3. \" Copyright (C) 2000-2 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. .TH isync 1 "2002 Jun 17"
  20. ..
  21. .SH NAME
  22. isync - synchronize IMAP4 and maildir mailboxes
  23. ..
  24. .SH SYNOPSIS
  25. .B isync
  26. [
  27. .I options...
  28. ]
  29. .I mailbox
  30. [
  31. .I mailbox ...
  32. ]
  33. ..
  34. .SH DESCRIPTION
  35. .B isync
  36. is a command line application which synchronizes a local maildir-style
  37. mailbox with a remote IMAP4 mailbox, suitable for use in IMAP-disconnected
  38. mode. Multiple copies of the remote IMAP4 mailbox can be maintained, and
  39. all flags are synchronized.
  40. ..
  41. .SH OPTIONS
  42. .TP
  43. \fB-a\fR, \fB--all\fR
  44. Synchronize all mailboxes specified in the user's ~/.isyncrc.
  45. .TP
  46. \fB-C\fR, \fB--create\fR
  47. Automatically create the local maildir-style mailbox if it doesn't already
  48. exist.
  49. .TP
  50. \fB-c\fR, \fB--config\fR \fIfile\fR
  51. Read configuration from
  52. .I file
  53. By default, configuration is read from ~/.isyncrc if it exists.
  54. .TP
  55. .B -d, --delete
  56. Causes
  57. .B isync
  58. to delete messages from the local maildir mailbox which do not exist on the
  59. IMAP server. By default,
  60. .I dead
  61. messages are
  62. .B not
  63. deleted.
  64. .TP
  65. \fB-e\fR, \fB--expunge\fR
  66. Causes
  67. .B isync
  68. to permanently remove all messages marked for deletion in both the local
  69. maildir mailbox and the remote IMAP mailbox. By default, messages are
  70. .B not
  71. expunged.
  72. .TP
  73. \fB-f\fR, \fB--fast\fR
  74. Causes
  75. .B isync
  76. to skip the step of synchronzing message flags between the local maildir
  77. mailbox and the IMAP mailbox. Only new messages existing on the server will
  78. be fetched into the local mailbox.
  79. .TP
  80. \fB-h\fR, \fB--help\fR
  81. Displays a summary of command line options
  82. .TP
  83. \fB-p\fR, \fB--port\fR \fIport\fR
  84. Specifies the port on the IMAP server to connect to (default: 143)
  85. .TP
  86. \fB-q\fR, \fB--quiet\fR
  87. Supress feedback messages.
  88. .TP
  89. \fB-r\fR, \fB--remote\fR \fIbox\fR
  90. Specifies the name of the remote IMAP mailbox to synchronize with
  91. (Default: INBOX)
  92. .TP
  93. \fB-s\fR, \fB--host\fR \fB[\fRimaps:\fB]\fR\fIhost\fR
  94. Specifies the hostname of the IMAP server
  95. .TP
  96. \fB-u\fR, \fB--user\fR \fIuser\fR
  97. Specifies the login name to access the IMAP server (default: $USER)
  98. .TP
  99. .B -v, --version
  100. Displays
  101. .B isync
  102. version information
  103. .TP
  104. .B -V, --verbose
  105. Enables
  106. .I verbose
  107. mode, which displays the IMAP4 network traffic.
  108. ..
  109. .SH CONFIGURATION
  110. .B isync
  111. reads
  112. .I ~/.isyncrc
  113. to load default configuration data. Each line of the configuration file
  114. consists of a command. The following commands are understood:
  115. .TP
  116. \fBMailbox\fR \fIpath\fR
  117. Defines a local maildir mailbox. All configuration commands following this
  118. line, up until the next
  119. .I Mailbox
  120. command, apply to this mailbox only.
  121. ..
  122. .TP
  123. \fBHost\fR \fB[\fRimaps:\fB]\fR\fIname\fR
  124. Defines the DNS name or IP address of the IMAP server. If the hostname is
  125. prefixed with
  126. .I imaps:
  127. the connection is assumed to be a SSL connection to port 993 (though you can
  128. change this by placing a
  129. .B Port
  130. command
  131. .B after
  132. the
  133. .B Host
  134. command. Note that some servers support SSL on the default port 143.
  135. .B isync
  136. will always attempt to use SSL if available.
  137. ..
  138. .TP
  139. \fBPort\fR \fIport\fR
  140. Defines the TCP port number on the IMAP server to use (Default: 143)
  141. ..
  142. .TP
  143. \fBBox\fR \fImailbox\fR
  144. Defines the name of the remote IMAP mailbox associated with the local
  145. maildir mailbox (Default: INBOX)
  146. ..
  147. .TP
  148. \fBUser\fR \fIusername\fR
  149. Defines the login name on the IMAP server (Default: current user)
  150. ..
  151. .TP
  152. \fBPass\fR \fIpassword\fR
  153. Defines the password for
  154. .I username
  155. on the IMAP server. Note that this option is
  156. .B NOT
  157. required. If no password is specified in the configuration file,
  158. .B isync
  159. will prompt you for it.
  160. ..
  161. .TP
  162. \fBAlias\fR \fIstring\fR
  163. Defines an alias for the mailbox which can be used as a shortcut on the
  164. command line.
  165. ..
  166. .TP
  167. \fBCopyDeletedTo\fR \fIstring\fR
  168. Specifies the remote IMAP mailbox to copy deleted messages prior to
  169. expunging (Default: none).
  170. ..
  171. .TP
  172. \fBDelete\fR \fIyes|no\fR
  173. Specifies whether messages in the local copy of the mailbox which don't
  174. exist on the server are automatically deleted. (Default: no).
  175. ..
  176. .TP
  177. \fBExpunge\fR \fIyes|no\fR
  178. Specifies whether deleted messages are expunged by default (Default: no).
  179. \fBNOTE:\fR The
  180. .I -e
  181. command line option overrides this setting when set to
  182. \fIno\fR.
  183. ..
  184. .TP
  185. \fBMailDir\fR \fIstring\fR
  186. Specifies the location for your mailboxes if a relative path is
  187. specified in a
  188. .I Mailbox
  189. command (Default: \fI~\fR).
  190. .B NOTE:
  191. This directive is only meaningful the in
  192. .I global
  193. section (see below).
  194. ..
  195. .TP
  196. \fBMaxMessages\fR \fIcount\fR
  197. Sets the number of messages
  198. .B isync
  199. should keep in a mailbox.
  200. This is useful for mailboxes where you keep a complete archive on the
  201. server, but want to mirror only the last messages (for instance, for mailing
  202. lists.)
  203. The messages that were the first to arrive in the mailbox (independent of the
  204. actual date of the message) will automatically be deleted if you tell
  205. pass
  206. .B isync
  207. the delete (-d, --delete) flag.
  208. Messages that are flagged (marked as important) will not be automatically
  209. deleted.
  210. If
  211. .I count
  212. is 0, the maximum number of messages is
  213. .B unlimited
  214. (Default: 0).
  215. ..
  216. .TP
  217. \fBMaxSize\fR \fIbytes\fR
  218. Sets a threshold for the maximum message size (in bytes) for which
  219. .B isync
  220. should fetch from the server. This is useful for weeding out messages with
  221. large attachments. If
  222. .I bytes
  223. is 0, the maximum file size is
  224. .B unlimited.
  225. ..
  226. .TP
  227. \fBTunnel\fR \fIcommand\fR
  228. Specify a command to run to establish a connection rather than opening a TCP
  229. socket. This allows you to run an IMAP session over an SSH tunnel, for
  230. example.
  231. .TP
  232. \fBUseNamespace\fR \fIyes|no\fR
  233. Selects whether
  234. .B isync
  235. should select mailboxes using the namespace given by the NAMESPACE command.
  236. This is useful with broken IMAP servers. (Default:
  237. .I yes
  238. )
  239. ..
  240. .TP
  241. \fBRequireCRAM\fR \fIyes|no\fR
  242. If set to
  243. .I yes
  244. ,
  245. .B isync
  246. will require that the server accept CRAM-MD5 intead of PLAIN to authenticate
  247. the user.
  248. ..
  249. .TP
  250. \fBRequireSSL\fR \fIyes|no\fR
  251. .B isync
  252. will abort the connection if a TLS/SSL session to the IMAP
  253. server can not be established. (Default:
  254. .I yes
  255. )
  256. ..
  257. .TP
  258. \fBCertificateFile\fR \fIpath\fR
  259. File containing X.509 CA certificates used to verify server identities.
  260. ..
  261. .TP
  262. \fBUseSSLv2\fR \fIyes|no\fR
  263. Should
  264. .B isync
  265. use SSLv2 for communication with the IMAP server over SSL? (Default:
  266. .I yes
  267. if the imaps port is used, otherwise
  268. .I no
  269. )
  270. ..
  271. .TP
  272. \fBUseSSLv3\fR \fIyes|no\fR
  273. Should
  274. .B isync
  275. use SSLv3 for communication with the IMAP server over SSL? (Default:
  276. .I yes
  277. if the imaps port is used, otherwise
  278. .I no
  279. )
  280. ..
  281. .TP
  282. \fBUseTLSv1\fR \fIyes|no\fR
  283. Should
  284. .B isync
  285. use TLSv1 for communication with the IMAP server over SSL? (Default:
  286. .I yes
  287. )
  288. ..
  289. .P
  290. Configuration commands that appear prior to the first
  291. .B Mailbox
  292. command are considered to be
  293. .I global
  294. options which are used as defaults when those specific options are not
  295. specifically set for a defined Mailbox. For example, if you use the same
  296. login name for several IMAP servers, you can put a
  297. .B User
  298. command before the first
  299. .B Mailbox
  300. command, and then leave out the
  301. .B User
  302. command in the sections for each mailbox.
  303. .B isync
  304. will then use the global value by default.
  305. ..
  306. .SH FILES
  307. .TP
  308. .B ~/.isyncrc
  309. Default configuration file
  310. ..
  311. .SH BUGS
  312. .B isync
  313. does not use NFS-safe locking. It will correctly prevent concurrent
  314. synchronization of a mailbox on the same host, but not across NFS.
  315. .P
  316. When synchronizing multiple mailboxes on the same IMAP server, it is not
  317. possible to select different SSL options for each mailbox. Only the options
  318. from the first mailbox are applied since the SSL session is reused.
  319. .P
  320. If new mail arrives in the IMAP mailbox after
  321. .B isync
  322. has retrieved the initial message list, the new mail will not be fetched
  323. until the next time
  324. .B isync
  325. is invoked.
  326. .P
  327. It is currently impossible to unset the \\Flagged attribute of a message
  328. once it is set. It has to be manually unset everywhere since isync
  329. doesn't have enough information to know which was the last status of the
  330. message.
  331. .P
  332. The ndbm database created for each mailbox is not portable across different
  333. architectures. It currently stores the UID in host byte order.
  334. .SH SEE ALSO
  335. mutt(1), maildir(5)
  336. .P
  337. Up to date information on
  338. .B isync
  339. can be found at
  340. http://www.cs.hmc.edu/~me/isync/.
  341. ..
  342. .SH AUTHOR
  343. Written by Michael R. Elkins <me@mutt.org>.