@ -1,6 +1,6 @@
.ig
\" isync - IMAP4 to maildir mailbox synchronizer
\" Copyright (C) 2000-2 Michael R. Elkins <me@mutt.org>
\" Copyright (C) 2000-2002 Michael R. Elkins <me@mutt.org>
\"
\" This program is free software; you can redistribute it and/or modify
\" it under the terms of the GNU General Public License as published by
@ -16,66 +16,70 @@
\" along with this program; if not, write to the Free Software
\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. .
.TH isync 1 "2002 Jun 17 "
.TH isync 1 "2002 Oct 14 "
. .
.SH NAME
isync - synchronize IMAP4 and maildir mailboxes
. .
.SH SYNOPSIS
.B isync
[
.I options...
]
.I mailbox
[
.I mailbox ...
]
\fB isync\fR [\fI options...\fR ] \fI mailbox\fR [\fI mailbox ...\fR ]
.br
\fB isync\fR [\fI options...\fR ] \fI -a\fR
.br
\fB isync\fR [\fI options...\fR ] \fI -l\fR
. .
.SH DESCRIPTION
.B isync
is a command line application which synchronizes a local maildir-style
mailbox with a remote IMAP4 mailbox, suitable for use in IMAP-disconnected
mode. Multiple copies of the remote IMAP4 mailbox can be maintained, and
all flags are synchronized.
\fB isync\fR is a command line application which synchronizes a local
maildir-style mailbox with a remote IMAP4 mailbox, suitable for use in
IMAP-disconnected mode. Multiple copies of the remote IMAP4 mailbox can
be maintained, and all flags are synchronized.
. .
.SH OPTIONS
.TP
\fB -c\fR , \fB --config\fR \fI file\fR
Read configuration from \fI file\fR .
By default, the configuration is read from ~/.isyncrc if it exists.
.TP
\fB -1\fR , \fB --one-to-one\fR
Instead of using the mailbox specifications in ~/.isyncrc, isync will pick up
all mailboxes from the local directory and remote folder and map them 1:1
onto each other according to their names.
.TP
\fB -I\fR , \fB --inbox\fR \fI mailbox\fR
Exception to the 1:1 mapping created by -1: the special IMAP mailbox \fI INBOX\fR
is mapped to the local \fI mailbox\fR (relative to the maildir).
.TP
\fB -a\fR , \fB --all\fR
Synchronize all mailboxes specified in the user's ~/.isyncrc.
Synchronize all mailboxes (either specified in ~/.isyncrc or determined by the
1:1 mapping).
.TP
\fB -C\fR , \fB --create\fR
\fB -l\fR , \fB --list\fR
Don't synchronize anything, but list all mailboxes and exit.
.TP
\fB -L\fR , \fB --create-local\fR
Automatically create the local maildir-style mailbox if it doesn't already
exist.
.TP
\fB -c\fR , \fB --config\fR \fI file\fR
Read configuration from
.I file
By default, configuration is read from ~/.isyncrc if it exists.
.TP
.B -d, --delete
Causes
.B isync
to delete messages from the local maildir mailbox which do not exist on the
IMAP server. By default,
.I dead
messages are
.B not
deleted.
\fB -R\fR , \fB --create-remote\fR
Automatically create the remote IMAP mailbox if it doesn't already exist.
.TP
\fB -C\fR , \fB --create\fR
Automatically create any mailboxes if they doesn't already exist.
.TP
\fB -d\fR , \fB --delete\fR
Causes \fB isync\fR to delete messages from the local maildir mailbox
which do not exist on the IMAP server. By default, \fI dead\fR messages
are \fB not\fR deleted.
.TP
\fB -e\fR , \fB --expunge\fR
Causes
.B isync
to permanently remove all messages marked for deletion in both the local
maildir mailbox and the remote IMAP mailbox. By default, messages are
.B not
expunged.
Causes \fB isync\fR to permanently remove all messages marked for deletion
in both the local maildir mailbox and the remote IMAP mailbox. By default,
messages are \fB not\fR expunged.
.TP
\fB -f\fR , \fB --fast\fR
Causes
.B isync
to skip the step of synchronzing message flags between the local maildir
mailbox and the IMAP mailbox. Only new messages existing on the server will
be fetched into the local mailbox.
Causes \fB isync\fR to skip the step of synchronzing message flags between the
local maildir mailbox and the IMAP mailbox. Only new messages existing on the
server will be fetched into the local mailbox.
.TP
\fB -h\fR , \fB --help\fR
Displays a summary of command line options
@ -96,44 +100,34 @@ Specifies the hostname of the IMAP server
\fB -u\fR , \fB --user\fR \fI user\fR
Specifies the login name to access the IMAP server (default: $USER)
.TP
.B -v, --version
Displays
.B isync
version information
\fB -M\fR , \fB --maildir\fR \fI dir\fR
Specifies the location for your local mailboxes.
.TP
\fB -F\fR , \fB --folder\fR \fI folder\fR /
Specifies the location for your remote mailboxes.
.TP
\fB -v\fR , \fB --version\fR
Displays \fB isync\fR version information.
.TP
.B -V, --verbose
Enables
.I verbose
mode, which displays the IMAP4 network traffic.
\fB -V\fR , \fB --verbose\fR
Enables \fI verbose\fR mode, which displays the IMAP4 network traffic.
. .
.SH CONFIGURATION
.B isync
reads
.I ~/.isyncrc
to load default configuration data. Each line of the configuration file
consists of a command. The following commands are understood:
\fB isync\fR reads \fI ~/.isyncrc\fR to load default configuration data.
Each line of the configuration file consists of a command.
The following commands are understood:
.TP
\fB Mailbox\fR \fI path\fR
Defines a local maildir mailbox. All configuration commands following this
line, up until the next
.I Mailbox
command, apply to this mailbox only.
line, up until the next \fI Mailbox\fR command, apply to this mailbox only.
. .
.TP
\fB Host\fR \fB [\fR imaps:\fB ]\fR \fI name\fR
Defines the DNS name or IP address of the IMAP server. If the hostname is
prefixed with
.I imaps:
the connection is assumed to be a SSL connection to port 993 (though you can
change this by placing a
.B Port
command
.B after
the
.B Host
command. Note that some servers support SSL on the default port 143.
.B isync
will always attempt to use SSL if available.
prefixed with \fI imaps:\fR the connection is assumed to be a SSL connection
to port 993 (though you can change this by placing a \fB Port\fR command
\fB after\fR the \fB Host\fR command. Note that some servers support SSL on
the default port 143. \fB isync\fR will always attempt to use SSL if available.
. .
.TP
\fB Port\fR \fI port\fR
@ -150,12 +144,9 @@ Defines the login name on the IMAP server (Default: current user)
. .
.TP
\fB Pass\fR \fI password\fR
Defines the password for
.I username
on the IMAP server. Note that this option is
.B NOT
required. If no password is specified in the configuration file,
.B isync
Defines the password for \fI username\fR on the IMAP server.
Note that this option is \fB NOT\fR required.
If no password is specified in the configuration file, \fB isync\fR
will prompt you for it.
. .
.TP
@ -164,64 +155,58 @@ Defines an alias for the mailbox which can be used as a shortcut on the
command line.
. .
.TP
\fB CopyDeletedTo\fR \fI string \fR
\fB CopyDeletedTo\fR \fI mailbox \fR
Specifies the remote IMAP mailbox to copy deleted messages prior to
expunging (Default: none).
. .
.TP
\fB Delete\fR \fI yes|no\fR
\fB Delete\fR \fI yes\fR |\fI no\fR
Specifies whether messages in the local copy of the mailbox which don't
exist on the server are automatically deleted. (Default: no).
\fB NOTE:\fR The \fI -d\fR command line option overrides this setting when
set to \fI no\fR .
. .
.TP
\fB Expunge\fR \fI yes|no\fR
\fB Expunge\fR \fI yes\fR |\fI no\fR
Specifies whether deleted messages are expunged by default (Default: no).
\fB NOTE:\fR The
.I -e
command line option overrides this setting when set to
\fI no\fR .
. .
.TP
\fB MailDir\fR \fI string\fR
Specifies the location for your mailboxes if a relative path is
specified in a
.I Mailbox
command (Default: \fI ~\fR ).
.B NOTE:
This directive is only meaningful the in
.I global
\fB NOTE:\fR The \fI -e\fR command line option overrides this setting when
set to \fI no\fR .
. .
.TP
\fB MailDir\fR \fI directory\fR
Specifies the location of your local mailboxes if a relative path is
specified in a \fI Mailbox\fR command (Default: \fI ~\fR ).
\fB NOTE:\fR This directive is only meaningful in the \fI global\fR
section (see below).
. .
.TP
\fB Folder\fR \fI directory\fR /
Specifies the location of your IMAP mailboxes
specified in \fI Box\fR commands (Default: \fI ""\fR ).
\fB NOTE:\fR You \fB must\fR append the hierarchy delimiter (usually
a slash) to this specification.
\fB NOTE 2:\fR This directive is only meaningful in the \fI global\fR
section (see below).
. .
.TP
\fB MaxMessages\fR \fI count\fR
Sets the number of messages
.B isync
should keep in a mailbox.
Sets the number of messages \fB isync\fR should keep in a mailbox.
This is useful for mailboxes where you keep a complete archive on the
server, but want to mirror only the last messages (for instance, for mailing
lists.)
The messages that were the first to arrive in the mailbox (independent of the
actual date of the message) will automatically be deleted if you tell
pass
.B isync
the delete (-d, --delete) flag.
actual date of the message) will automatically be deleted if you
pass \fB isync\fR the delete (-d, --delete) flag.
Messages that are flagged (marked as important) will not be automatically
deleted.
If
.I count
is 0, the maximum number of messages is
.B unlimited
If \fI count\fR is 0, the maximum number of messages is \fB unlimited\fR
(Default: 0).
. .
.TP
\fB MaxSize\fR \fI bytes\fR
Sets a threshold for the maximum message size (in bytes) for which
.B isync
Sets a threshold for the maximum message size (in bytes) for which \fB isync\fR
should fetch from the server. This is useful for weeding out messages with
large attachments. If
.I bytes
is 0, the maximum file size is
.B unlimited.
large attachments. If \fI bytes\fR is 0, the maximum file size is \fB unlimited\fR .
. .
.TP
\fB Tunnel\fR \fI command\fR
@ -229,79 +214,64 @@ Specify a command to run to establish a connection rather than opening a TCP
socket. This allows you to run an IMAP session over an SSH tunnel, for
example.
.TP
\fB UseNamespace\fR \fI yes|no\fR
Selects whether
.B isync
should select mailboxes using the namespace given by the NAMESPACE command.
This is useful with broken IMAP servers. (Default:
.I yes
)
\fB UseNamespace\fR \fI yes\fR |\fI no\fR
Selects whether \fB isync\fR should select mailboxes using the namespace given
by the NAMESPACE command. This is useful with broken IMAP servers. (Default:
\fI yes\fR )
. .
.TP
\fB RequireCRAM\fR \fI yes|no\fR
If set to
.I yes
,
.B isync
will require that the server accept CRAM-MD5 intead of PLAIN to authenticate
the user.
\fB RequireCRAM\fR \fI yes\fR |\fI no\fR
If set to \fI yes\fR , \fB isync\fR will require that the server accept CRAM-MD5
intead of PLAIN to authenticate the user.
. .
.TP
\fB RequireSSL\fR \fI yes|no\fR
.B isync
will abort the connection if a TLS/SSL session to the IMAP
server can not be established. (Default:
.I yes
)
\fB RequireSSL\fR \fI yes\fR |\fI no\fR
\fB isync\fR will abort the connection if a TLS/SSL session to the IMAP
server can not be established. (Default: \fI yes\fR )
. .
.TP
\fB CertificateFile\fR \fI path\fR
File containing X.509 CA certificates used to verify server identities.
. .
.TP
\fB UseSSLv2\fR \fI yes|no\fR
Should
.B isync
use SSLv2 for communication with the IMAP server over SSL? (Default:
.I yes
if the imaps port is used, otherwise
.I no
)
\fB UseSSLv2\fR \fI yes\fR |\fI no\fR
Should \fB isync\fR use SSLv2 for communication with the IMAP server over SSL?
(Default: \fI yes\fR if the imaps port is used, otherwise \fI no\fR )
. .
.TP
\fB UseSSLv3\fR \fI yes\fR |\fI no\fR
Should \fB isync\fR use SSLv3 for communication with the IMAP server over SSL?
(Default: \fI yes\fR if the imaps port is used, otherwise \fI no\fR )
. .
.TP
\fB UseTLSv1\fR \fI yes\fR |\fI no\fR
Should \fB isync\fR use TLSv1 for communication with the IMAP server over SSL?
(Default: \fI yes\fR )
. .
.TP
\fB UseSSLv3\fR \fI yes|no\fR
Should
.B isync
use SSLv3 for communication with the IMAP server over SSL? (Default:
.I yes
if the imaps port is used, otherwise
.I no
)
\fB OneToOne\fR
\fB isync\fR will ignore any \fI Mailbox\fR specifications and instead pick up
all mailboxes from the local \fI MailDir\fR and remote \fI Folder\fR and map
them 1:1 onto each other according to their names.
\fB NOTE:\fR This directive is only meaningful in the \fI global\fR
section (see below).
. .
.TP
\fB UseTLSv1\fR \fI yes|no\fR
Should
.B isync
use TLSv1 for communication with the IMAP server over SSL? (Default:
.I yes
)
\fB Inbox\fR \fI mailbox\fR
Exception to the OneToOne mapping: the special IMAP mailbox \fI INBOX\fR
is mapped to the local \fI mailbox\fR (relative to the \fI MailDir\fR ).
\fB NOTE:\fR This directive is only meaningful in the \fI global\fR
section (see below).
. .
.P
Configuration commands that appear prior to the first
.B Mailbox
command are considered to be
.I global
Configuration commands that appear prior to the first \fB Mailbox\fR
command are considered to be \fI global\fR
options which are used as defaults when those specific options are not
specifically set for a defined Mailbox. For example, if you use the same
login name for several IMAP servers, you can put a
.B User
command before the first
.B Mailbox
command, and then leave out the
.B User
command in the sections for each mailbox.
.B isync
will then use the global value by default.
login name for several IMAP servers, you can put a \fB User\fR command before
the first \fB Mailbox\fR command, and then leave out the \fB User\fR command
in the sections for each mailbox.
\fB isync\fR will then use the global value by default.
. .
.SH FILES
.TP
@ -309,20 +279,16 @@ will then use the global value by default.
Default configuration file
. .
.SH BUGS
.B isync
does not use NFS-safe locking. It will correctly prevent concurrent
synchronization of a mailbox on the same host, but not across NFS.
\fB isync\fR does not use NFS-safe locking. It will correctly prevent
concurrent synchronization of a mailbox on the same host, but not across NFS.
.P
When synchronizing multiple mailboxes on the same IMAP server, it is not
possible to select different SSL options for each mailbox. Only the options
from the first mailbox are applied since the SSL session is reused.
.P
If new mail arrives in the IMAP mailbox after
.B isync
If new mail arrives in the IMAP mailbox after \fB isync\fR
has retrieved the initial message list, the new mail will not be fetched
until the next time
.B isync
is invoked.
until the next time \fB isync\fR is invoked.
.P
It is currently impossible to unset the \\ Flagged attribute of a message
once it is set. It has to be manually unset everywhere since isync
@ -331,12 +297,12 @@ message.
.P
The ndbm database created for each mailbox is not portable across different
architectures. It currently stores the UID in host byte order.
.P
The configuration file takes precedence over command line options.
.SH SEE ALSO
mutt(1), maildir(5)
.P
Up to date information on
.B isync
can be found at
Up to date information on \fB isync\fR can be found at
http://www.cs.hmc.edu/~me/isync/.
. .
.SH AUTHOR