isync(1)

NAME
isync - synchronize IMAP4 and maildir mailboxes

SYNOPSIS
isync [ options... ] mailbox [ mailbox ... ]

DESCRIPTION
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.

OPTIONS

-a, --all
    Synchronize all mailboxes specified in the user's ~/.isyncrc.

-C, --create
    Automatically create the local maildir-style mailbox if it doesn't already exist.

-c, --config file
    Read configuration from file By default, configuration is read from ~/.isyncrc if it exists.

-d, --delete
    Causes isync to delete messages from the local maildir mailbox which do not exist on the IMAP server. By default, dead messages are not deleted.

-e, --expunge
    Causes isync to permanently remove all messages marked for deletion in both the local maildir mailbox and the remote IMAP mailbox. By default, messages are not expunged.

-f, --fast
    Causes 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.

-h, --help
    Displays a summary of command line options

-p, --port port
    Specifies the port on the IMAP server to connect to (default: 143)

-q, --quiet
    Supress feedback messages.

-r, --remote box
    Specifies the name of the remote IMAP mailbox to synchronize with (Default: INBOX)

-s, --host [imaps:]host
    Specifies the hostname of the IMAP server

-u, --user user
    Specifies the login name to access the IMAP server (default: $USER)

-v, --version
    Displays isync version information

-V, --verbose
    Enables verbose mode, which displays the IMAP4 network traffic.

CONFIGURATION
isync reads ~/.isyncrc to load default configuration data. Each line of the configuration file consists of a command. The following commands are understood:

Mailbox path
    Defines a local maildir mailbox. All configuration commands following this line, up until the next Mailbox command, apply to this mailbox only.

Host [imaps:]name
    Defines the DNS name or IP address of the IMAP server. If the hostname is prefixed with imaps: the connection is assumed to be a SSL connection to port 993 (though you can change this by placing a Port command after the Host command. Note that some servers support SSL on the default port 143. isync will always attempt to use SSL if available.

Port port
    Defines the TCP port number on the IMAP server to use (Default: 143)

Box mailbox
    Defines the name of the remote IMAP mailbox associated with the local maildir mailbox (Default: INBOX)

User username
    Defines the login name on the IMAP server (Default: current user)

Pass password
    Defines the password for username on the IMAP server. Note that this option is NOT required. If no password is specified in the configuration file, isync will prompt you for it.

Alias string
    Defines an alias for the mailbox which can be used as a shortcut on the command line.

CopyDeletedTo string
    Specifies the remote IMAP mailbox to copy deleted messages prior to expunging (Default: none).

Delete yes|no
    Specifies whether messages in the local copy of the mailbox which don't exist on the server are automatically deleted. (Default: no).

Expunge yes|no
    Specifies whether deleted messages are expunged by default (Default: no). NOTE: The -e command line option overrides this setting when set to no.

MailDir string
    Specifies the location for your mailboxes if a relative path is specified in a Mailbox command (Default: ~). NOTE: This directive is only meaningful the in global section (see below).

MaxMessages count
    Sets the number of messages isync 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 isync the delete (-d, --delete) flag. Messages that are flagged (marked as important) will not be automatically deleted. If count is 0, the maximum number of messages is unlimited (Default: 0).

MaxSize bytes
    Sets a threshold for the maximum message size (in bytes) for which isync should fetch from the server. This is useful for weeding out messages with large attachments. If bytes is 0, the maximum file size is unlimited.

UseNamespace yes|no
    Selects whether isync should select mailboxes using the namespace given by the NAMESPACE command. This is useful with broken IMAP servers. (Default: yes )

RequireCRAM yes|no
    If set to yes , isync will require that the server accept CRAM-MD5 intead of PLAIN to authenticate the user.

RequireSSL yes|no
    isync will abort the connection if a TLS/SSL session to the IMAP server can not be established. (Default: yes )

CertificateFile path
    File containing X.509 CA certificates used to verify server identities.

UseSSLv2 yes|no
    Should isync use SSLv2 for communication with the IMAP server over SSL? (Default: yes if the imaps port is used, otherwise no )

UseSSLv3 yes|no
    Should isync use SSLv3 for communication with the IMAP server over SSL? (Default: yes if the imaps port is used, otherwise no )

UseTLSv1 yes|no
    Should isync use TLSv1 for communication with the IMAP server over SSL? (Default: yes )

Configuration commands that appear prior to the first Mailbox command are considered to be global 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 User command before the first Mailbox command, and then leave out the User command in the sections for each mailbox. isync will then use the global value by default.

FILES

~/.isyncrc
    Default configuration file

BUGS
isync does not use NFS-safe locking. It will correctly prevent concurrent synchronization of a mailbox on the same host, but not across NFS.

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.

If new mail arrives in the IMAP mailbox after isync has retrieved the initial message list, the new mail will not be fetched until the next time isync is invoked.

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 doesn't have enough information to know which was the last status of the message.

The ndbm database created for each mailbox is not portable across different architectures. It currently stores the UID in host byte order.

SEE ALSO
mutt(1), maildir(5)

Up to date information on isync can be found at http://www.sigpipe.org:8080/isync/.

AUTHOR
Written by Michael R. Elkins <me@mutt.org>.