isync.1 7.8 KB

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