isync.1 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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 "2000 Dec 27"
  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. .B -e, --expunge
  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. .B -f, --fast
  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. .B -h, --help
  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-r\fR, \fB--remote\fR \fIbox\fR
  80. Specifies the name of the remote IMAP mailbox to synchronize with
  81. (Default: INBOX)
  82. .TP
  83. \fB-s\fR, \fB--host\fR \fB[\fRimaps:\fB]\fR\fIhost\fR
  84. .P
  85. Specifies the hostname of the IMAP server
  86. .TP
  87. \fB-u\fR, \fB--user\fR \fIuser\fR
  88. Specifies the login name to access the IMAP server (default: $USER)
  89. .TP
  90. .B -v, --version
  91. Displays
  92. .B isync
  93. version information
  94. .TP
  95. .B -V, --verbose
  96. Enables
  97. .I verbose
  98. mode, which displays the IMAP4 network traffic.
  99. ..
  100. .SH CONFIGURATION
  101. .B isync
  102. reads
  103. .I ~/.isyncrc
  104. to load default configuration data. Each line of the configuration file
  105. consists of a command. The following commands are understood:
  106. .TP
  107. \fBMailbox\fR \fIpath\fR
  108. Defines a local maildir mailbox. All configuration commands following this
  109. line, up until the next
  110. .I Mailbox
  111. command, apply to this mailbox only.
  112. ..
  113. .TP
  114. \fBHost\fR \fB[\fRimaps:\fB]\fR\fIname\fR
  115. Defines the DNS name or IP address of the IMAP server. If the hostname is
  116. prefixed with
  117. .I imaps:
  118. the connection is assumed to be a SSL connection to port 993 (though you can
  119. change this by placing a
  120. .B Port
  121. command
  122. .B after
  123. the
  124. .B Host
  125. command. Note that some servers support SSL on the default port 143.
  126. .B isync
  127. will always attempt to use SSL if available.
  128. ..
  129. .TP
  130. \fBPort\fR \fIport\fR
  131. Defines the TCP port number on the IMAP server to use (Default: 143)
  132. ..
  133. .TP
  134. \fBBox\fR \fImailbox\fR
  135. Defines the name of the remote IMAP mailbox associated with the local
  136. maildir mailbox (Default: INBOX)
  137. ..
  138. .TP
  139. \fBUser\fR \fIusername\fR
  140. Defines the login name on the IMAP server (Default: current user)
  141. ..
  142. .TP
  143. \fBPass\fR \fIpassword\fR
  144. Defines the password for
  145. .I username
  146. on the IMAP server. Note that this option is
  147. .B NOT
  148. required. If no password is specified in the configuration file,
  149. .B isync
  150. will prompt you for it.
  151. ..
  152. .TP
  153. \fBAlias\fR \fIstring\fR
  154. Defines an alias for the mailbox which can be used as a shortcut on the
  155. command line.
  156. ..
  157. .TP
  158. \fBMaxSize\fR \fIbytes\fR
  159. Sets a threshold for the maximum message size (in bytes) for which
  160. .B isync
  161. should fetch from the server. This is useful for weeding out messages with
  162. large attachments. If
  163. .I bytes
  164. is 0, the maximum file size is
  165. .B unlimited.
  166. ..
  167. .TP
  168. \fBUseNamespace\fR \fIyes|no\fR
  169. Selects whether
  170. .B isync
  171. should select mailboxes using the namespace given by the NAMESPACE command.
  172. This is useful with broken IMAP servers. (Default:
  173. .I yes
  174. )
  175. ..
  176. .TP
  177. \fBRequireCRAM\fR \fIyes|no\fR
  178. If set to
  179. .I yes
  180. ,
  181. .B isync
  182. will require that the server accept CRAM-MD5 intead of PLAIN to authenticate
  183. the user.
  184. ..
  185. .TP
  186. \fBRequireSSL\fR \fIyes|no\fR
  187. .B isync
  188. will abort the connection if a TLS/SSL session to the IMAP
  189. server can not be established. (Default:
  190. .I yes
  191. )
  192. ..
  193. .TP
  194. \fBCertificateFile\fR \fIpath\fR
  195. File containing X.509 CA certificates used to verify server identities.
  196. ..
  197. .TP
  198. \fBUseSSLv2\fR \fIyes|no\fR
  199. Should
  200. .B isync
  201. use SSLv2 for communication with the IMAP server over SSL? (Default:
  202. .I yes
  203. )
  204. ..
  205. .TP
  206. \fBUseSSLv3\fR \fIyes|no\fR
  207. Should
  208. .B isync
  209. use SSLv3 for communication with the IMAP server over SSL? (Default:
  210. .I yes
  211. )
  212. ..
  213. .TP
  214. \fBUseTLSv1\fR \fIyes|no\fR
  215. Should
  216. .B isync
  217. use TLSv1 for communication with the IMAP server over SSL? (Default:
  218. .I yes
  219. )
  220. ..
  221. .P
  222. Configuration commands that appear prior to the first
  223. .B Mailbox
  224. command are considered to be
  225. .I global
  226. options which are used as defaults when those specific options are not
  227. specifically set for a defined Mailbox. For example, if you use the same
  228. login name for several IMAP servers, you can put a
  229. .B User
  230. command before the first
  231. .B Mailbox
  232. command, and then leave out the
  233. .B User
  234. command in the sections for each mailbox.
  235. .B isync
  236. will then use the global value by default.
  237. ..
  238. .SH FILES
  239. .TP
  240. .B ~/.isyncrc
  241. Default configuration file
  242. ..
  243. .SH BUGS
  244. maildir(5) states that readers should not attempt to parse the filename of a
  245. a message other than the :info field. However, since
  246. .B isync
  247. relies on using the message UIDs that info must be inserted into the
  248. filename in a way which will be interoperable with existing readers. So
  249. the UID is placed in the filename of the messages in the local maildir
  250. mailbox rather than the :info field.
  251. .P
  252. When synchronizing multiple mailboxes on the same IMAP server, it is not
  253. possible to select different SSL options for each mailbox. Only the options
  254. from the first mailbox are applied since the SSL session is reused.
  255. .SH SEE ALSO
  256. mutt(1), maildir(5)
  257. .P
  258. Up to date information on
  259. .B isync
  260. can be found at
  261. http://www.sigpipe.org/isync/.
  262. ..
  263. .SH AUTHOR
  264. Written by Michael R. Elkins <me@mutt.org>.