isync.1 8.5 KB

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