2003-01-09 00:03:58 +01:00
|
|
|
|
.\" This manpage has been automatically generated by docbook2man
|
|
|
|
|
.\" from a DocBook document. This tool can be found at:
|
|
|
|
|
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
|
|
|
|
|
.\" Please send any bug reports, improvements, comments, patches,
|
|
|
|
|
.\" etc. to Steve Cheng <steve@ggi-project.org>.
|
2003-04-22 22:47:25 +02:00
|
|
|
|
.TH "OFFLINEIMAP" "1" "22 April 2003" "John Goerzen" "OfflineIMAP Manual"
|
2003-02-06 03:56:24 +01:00
|
|
|
|
|
2002-07-12 06:08:27 +02:00
|
|
|
|
.SH NAME
|
2002-07-12 08:43:07 +02:00
|
|
|
|
OfflineIMAP \- Powerful IMAP/Maildir synchronization and reader support
|
2002-07-12 06:08:27 +02:00
|
|
|
|
.SH SYNOPSIS
|
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBofflineimap\fR [ \fB-1\fR ] [ \fB-P \fIprofiledir\fB\fR ] [ \fB-a \fIaccountlist\fB\fR ] [ \fB-c \fIconfigfile\fB\fR ] [ \fB-d \fIdebugtype[,...]\fB\fR ] [ \fB-o\fR ] [ \fB-u \fIinterface\fB\fR ]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fBofflineimap\fR \fB-h\fR | \fB--help\fR
|
|
|
|
|
|
|
|
|
|
.SH "DESCRIPTION"
|
|
|
|
|
.PP
|
|
|
|
|
\fBOfflineIMAP\fR is a tool to simplify your e-mail
|
|
|
|
|
reading. With \fBOfflineIMAP\fR, you can read the same mailbox
|
|
|
|
|
from multiple computers. You get a current copy of your
|
|
|
|
|
messages on each computer, and changes you make one place will be
|
|
|
|
|
visible on all other systems. For instance, you can delete a message
|
|
|
|
|
on your home computer, and it will appear deleted on your work
|
|
|
|
|
computer as well. \fBOfflineIMAP\fR is also useful if you want to
|
|
|
|
|
use a mail reader that does not have IMAP support, has poor IMAP
|
|
|
|
|
support, or does not provide disconnected operation.
|
|
|
|
|
.PP
|
|
|
|
|
\fBOfflineIMAP\fR is \fBFAST\fR; it synchronizes
|
|
|
|
|
my two accounts with over 50 folders in 3 seconds. Other
|
|
|
|
|
similar tools might take over a minute, and achieve a
|
|
|
|
|
less-reliable result. Some mail readers can take over 10
|
|
|
|
|
minutes to do the same thing, and some don't even support it
|
|
|
|
|
at all. Unlike other mail tools, \fBOfflineIMAP\fR features a
|
|
|
|
|
multi-threaded synchronization algorithm that can dramatically
|
|
|
|
|
speed up performance in many situations by synchronizing
|
2002-07-12 06:08:27 +02:00
|
|
|
|
several different things simultaneously.
|
|
|
|
|
.PP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBOfflineIMAP\fR is \fBFLEXIBLE\fR; you can
|
|
|
|
|
customize which folders are synced via regular expressions,
|
|
|
|
|
lists, or Python expressions; a versatile and comprehensive
|
|
|
|
|
configuration file is used to control behavior; two user
|
|
|
|
|
interfaces are built-in; fine-tuning of synchronization
|
|
|
|
|
performance is possible; internal or external automation is
|
|
|
|
|
supported; SSL and PREAUTH tunnels are both supported; offline
|
|
|
|
|
(or "unplugged") reading is supported; and esoteric IMAP
|
|
|
|
|
features are supported to ensure compatibility with the widest
|
|
|
|
|
variety of IMAP servers.
|
|
|
|
|
.PP
|
|
|
|
|
\fBOfflineIMAP\fR is \fBSAFE\fR; it uses an
|
|
|
|
|
algorithm designed to prevent mail loss at all costs. Because
|
|
|
|
|
of the design of this algorithm, even programming errors
|
|
|
|
|
should not result in loss of mail. I am so confident in the
|
|
|
|
|
algorithm that I use my own personal and work accounts for
|
|
|
|
|
testing of \fBOfflineIMAP\fR pre-release, development, and beta
|
|
|
|
|
releases. Of course, legally speaking, \fBOfflineIMAP\fR comes
|
|
|
|
|
with no warranty, so I am not responsible if this turns out
|
|
|
|
|
to be wrong.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.SS "METHOD OF OPERATION"
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.PP
|
2003-04-22 22:47:25 +02:00
|
|
|
|
\fBOfflineIMAP\fR traditionally
|
|
|
|
|
operates by maintaining a hierarchy of
|
2003-01-09 00:03:58 +01:00
|
|
|
|
mail folders in Maildir format locally. Your own mail
|
|
|
|
|
reader will read mail from this tree, and need never know
|
|
|
|
|
that the mail comes from IMAP. \fBOfflineIMAP\fR will detect
|
|
|
|
|
changes to the mail folders on your IMAP server and your own
|
|
|
|
|
computer and bi-directionally synchronize them, copying,
|
|
|
|
|
marking, and deleting messages as necessary.
|
2003-04-22 22:47:25 +02:00
|
|
|
|
.PP
|
|
|
|
|
With \fBOfflineIMAP\fR 4.0, a powerful new ability has been
|
|
|
|
|
introduced -- the program can now synchronize two IMAP
|
|
|
|
|
servers with each other, with no need to have a Maildir
|
|
|
|
|
layer in-between. Many people use this if they use a mail
|
|
|
|
|
reader on their local machine that does not support
|
|
|
|
|
Maildirs. People may install an IMAP server on their local
|
|
|
|
|
machine, and point both \fBOfflineIMAP\fR and their mail reader
|
|
|
|
|
of choice at it. This is often preferable to the mail
|
|
|
|
|
reader's own IMAP support since \fBOfflineIMAP\fR supports many
|
|
|
|
|
features (offline reading, for one) that most IMAP-aware
|
|
|
|
|
readers don't.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SH "QUICK START"
|
|
|
|
|
.PP
|
|
|
|
|
If you have already installed \fBOfflineIMAP\fR system-wide,
|
|
|
|
|
or your system adminstrator has done that for you, your task
|
|
|
|
|
for setting up \fBOfflineIMAP\fR for the first time is quite
|
|
|
|
|
simple. You just need to set up your configuration file, make
|
|
|
|
|
your folder directory, and run it!
|
|
|
|
|
.PP
|
|
|
|
|
You can quickly set up your configuration file. The distribution
|
|
|
|
|
includes a file \fIofflineimap.conf.minimal\fR
|
|
|
|
|
(Debian users
|
|
|
|
|
may find this at
|
|
|
|
|
\fI/usr/share/doc/offlineimap/examples/offlineimap.conf.minimal\fR) that is a basic example of setting of \fBOfflineIMAP\fR. You can
|
|
|
|
|
simply copy this file into your home directory and name it
|
|
|
|
|
\fI.offlineimaprc\fR (note the leading period). A
|
|
|
|
|
command such as \fBcp offlineimap.conf.minimal ~/.offlineimaprc\fR will do it. Or, if you prefer, you can just copy this text to
|
|
|
|
|
\fI~/.offlineimaprc\fR:
|
|
|
|
|
|
|
|
|
|
.nf
|
|
|
|
|
[general]
|
|
|
|
|
accounts = Test
|
|
|
|
|
|
2003-04-22 22:47:25 +02:00
|
|
|
|
[Account Test]
|
|
|
|
|
localrepository = Local
|
|
|
|
|
remoterepository = Remote
|
|
|
|
|
|
|
|
|
|
[Repository Local]
|
|
|
|
|
type = Maildir
|
2003-01-09 00:03:58 +01:00
|
|
|
|
localfolders = ~/Test
|
2003-04-22 22:47:25 +02:00
|
|
|
|
|
|
|
|
|
[Repository Remote]
|
|
|
|
|
type = IMAP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
remotehost = examplehost
|
|
|
|
|
remoteuser = jgoerzen
|
|
|
|
|
.fi
|
|
|
|
|
.PP
|
|
|
|
|
Now, edit the \fI~/.offlineimaprc\fR file with
|
|
|
|
|
your favorite editor. All you have to do is specify a directory
|
|
|
|
|
for your folders to be in (on the \fIlocalfolders\fR
|
|
|
|
|
line), the host name of your IMAP server (on the
|
|
|
|
|
\fIremotehost\fR line), and your login name on
|
|
|
|
|
the remote (on the \fIremoteuser\fR line). That's
|
|
|
|
|
it!
|
|
|
|
|
.PP
|
|
|
|
|
To run \fBOfflineIMAP\fR, you just have to say
|
|
|
|
|
\fBofflineimap\fR -- it will fire up, ask you for
|
|
|
|
|
a login password if necessary, synchronize your folders, and exit.
|
|
|
|
|
See? You can just throw away the rest of this finely-crafted,
|
|
|
|
|
perfectly-honed manual! Of course, if you want to see how you can
|
|
|
|
|
make \fBOfflineIMAP\fR FIVE TIMES FASTER FOR JUST $19.95 (err, well,
|
|
|
|
|
$0), you have to read on!
|
|
|
|
|
.SH "INSTALLATION"
|
|
|
|
|
.PP
|
|
|
|
|
If you are reading this document via the "man" command, it is
|
|
|
|
|
likely
|
2002-07-12 08:43:07 +02:00
|
|
|
|
that you have no installation tasks to perform; your system
|
|
|
|
|
administrator has already installed it. If you need to install it
|
|
|
|
|
yourself, you have three options: a system-wide installation with
|
|
|
|
|
Debian, system-wide installation with other systems, and a single-user
|
2003-01-09 00:03:58 +01:00
|
|
|
|
installation. You can download the latest version of \fBOfflineIMAP\fR from
|
|
|
|
|
the \fBOfflineIMAP\fR
|
|
|
|
|
website <URL:http://quux.org/devel/offlineimap/>.
|
|
|
|
|
.SS "PREREQUISITES"
|
|
|
|
|
.PP
|
|
|
|
|
In order to use \fBOfflineIMAP\fR, you need to have these conditions
|
2002-07-12 08:43:07 +02:00
|
|
|
|
satisfied:
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
|
|
|
|
Your mail server must support IMAP. Most Internet Service
|
|
|
|
|
Providers
|
|
|
|
|
and corporate networks do, and most operating systems
|
|
|
|
|
have an IMAP
|
2002-07-12 08:43:07 +02:00
|
|
|
|
implementation readily available.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
|
|
|
|
You must have Python version 2.2.1 or above installed.
|
|
|
|
|
If you are
|
2002-07-12 08:43:07 +02:00
|
|
|
|
running on Debian GNU/Linux, this requirement will automatically be
|
|
|
|
|
taken care of for you. If you do not have Python already, check with
|
2003-01-09 00:03:58 +01:00
|
|
|
|
your system administrator or operating system vendor; or, download it from
|
|
|
|
|
the Python website <URL:http://www.python.org/>.
|
2002-08-09 01:35:35 +02:00
|
|
|
|
If you intend to use the Tk interface, you must have Tkinter
|
2002-07-12 08:43:07 +02:00
|
|
|
|
(python-tk) installed. If you intend to use the SSL interface, your
|
|
|
|
|
Python must have been built with SSL support.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
2003-04-22 22:47:25 +02:00
|
|
|
|
Have a mail reader that supports the Maildir mailbox
|
|
|
|
|
format. Most modern mail readers have this support
|
|
|
|
|
built-in, so you can choose from a wide variety of mail
|
|
|
|
|
servers. This format is also known as the "qmail"
|
|
|
|
|
format, so any mail reader compatible with it will work
|
|
|
|
|
with \fBOfflineIMAP\fR. If you do not have a mail reader
|
|
|
|
|
that supports Maildir, you can often install a local
|
|
|
|
|
IMAP server and point both \fBOfflineIMAP\fR and your mail
|
|
|
|
|
reader at it.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SS "SYSTEM-WIDE INSTALLATION, DEBIAN"
|
|
|
|
|
.PP
|
2002-07-12 08:43:07 +02:00
|
|
|
|
If you are tracking Debian unstable, you may install
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBOfflineIMAP\fR by simply running the following command as root:
|
2002-07-12 06:08:27 +02:00
|
|
|
|
.PP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBapt-get install offlineimap\fR
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.PP
|
|
|
|
|
If you are not tracking Debian unstable, download the Debian .deb
|
2003-01-09 00:03:58 +01:00
|
|
|
|
package from the \fBOfflineIMAP\fR website <URL:http://quux.org/devel/offlineimap/>
|
|
|
|
|
and then run \fBdpkg -i\fR to install the downloaded
|
|
|
|
|
package. Then, skip to [XRef to CONFIGURATION] below. You will type \fBofflineimap\fR to
|
|
|
|
|
invoke the program.
|
|
|
|
|
.SS "SYSTEM-WIDE INSTALLATION, OTHER"
|
|
|
|
|
.PP
|
|
|
|
|
Download the tar.gz version of the package from the
|
|
|
|
|
website <URL:http://quux.org/devel/offlineimap/>.
|
|
|
|
|
Then run
|
2002-11-05 21:07:45 +01:00
|
|
|
|
these commands, making sure that you are the "root" user first:
|
2003-01-09 00:03:58 +01:00
|
|
|
|
|
|
|
|
|
.nf
|
|
|
|
|
tar -zxvf offlineimap_x.y.z.tar.gz
|
|
|
|
|
cd offlineimap-x.y.z
|
|
|
|
|
python2.2 setup.py install
|
|
|
|
|
.fi
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.PP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
On some systems, you will need to use
|
|
|
|
|
\fBpython\fR instead of \fBpython2.2\fR.
|
|
|
|
|
Next, proceed to [XRef to CONFIGURATION] below. You will type \fBofflineimap\fR to
|
|
|
|
|
invoke the program.
|
|
|
|
|
.SS "SINGLE-ACCOUNT INSTALLATION"
|
|
|
|
|
.PP
|
|
|
|
|
Download the tar.gz version of the package from the
|
|
|
|
|
website <URL:http://quux.org/devel/offlineimap/>.
|
|
|
|
|
Then run these commands:
|
|
|
|
|
|
|
|
|
|
.nf
|
|
|
|
|
tar -zxvf offlineimap_x.y.z.tar.gz
|
|
|
|
|
cd offlineimap-x.y.z
|
|
|
|
|
.fi
|
|
|
|
|
.PP
|
|
|
|
|
When you want to run \fBOfflineIMAP\fR, you will issue the
|
|
|
|
|
\fBcd\fR command as above and then type
|
|
|
|
|
\fB./offlineimap.py\fR; there is no installation
|
|
|
|
|
step necessary.
|
|
|
|
|
.SH "CONFIGRUATION"
|
|
|
|
|
.PP
|
|
|
|
|
\fBOfflineIMAP\fR is regulated by a configuration file that is normally
|
|
|
|
|
stored in \fI~/.offlineimaprc\fR. \fBOfflineIMAP\fR
|
|
|
|
|
ships with a file named \fIofflineimap.conf\fR
|
2002-07-12 08:43:07 +02:00
|
|
|
|
that you should copy to that location and then edit. This file is
|
|
|
|
|
vital to proper operation of the system; it sets everything you need
|
2003-01-09 00:03:58 +01:00
|
|
|
|
to run \fBOfflineIMAP\fR. Full documentation for the configuration file
|
|
|
|
|
is included within the sample file.
|
|
|
|
|
.PP
|
|
|
|
|
\fBOfflineIMAP\fR also ships a file named
|
|
|
|
|
\fIofflineimap.conf.minimal\fR that you can also try.
|
|
|
|
|
It's useful if you want to get started with
|
2003-01-07 04:37:27 +01:00
|
|
|
|
the most basic feature set, and you can read about other features
|
2003-01-09 00:03:58 +01:00
|
|
|
|
later with \fIofflineimap.conf\fR.
|
|
|
|
|
.SH "OPTIONS"
|
|
|
|
|
.PP
|
2002-07-12 08:43:07 +02:00
|
|
|
|
Most configuration is done via the configuration file. Nevertheless,
|
2003-01-09 00:03:58 +01:00
|
|
|
|
there are a few command-line options that you may set for
|
|
|
|
|
\fBOfflineIMAP\fR.
|
|
|
|
|
.TP
|
|
|
|
|
\fB-1\fR
|
|
|
|
|
Disable most multithreading operations and use
|
|
|
|
|
solely a single-connection
|
2003-04-22 22:47:25 +02:00
|
|
|
|
sync. This effectively sets the
|
|
|
|
|
\fImaxsyncaccounts\fR
|
2003-01-09 00:03:58 +01:00
|
|
|
|
and all \fImaxconnections\fR configuration file
|
|
|
|
|
variables to 1.
|
|
|
|
|
.TP
|
|
|
|
|
\fB-P \fIprofiledir\fB\fR
|
|
|
|
|
Sets \fBOfflineIMAP\fR into profile mode. The program
|
|
|
|
|
will create \fIprofiledir\fR
|
|
|
|
|
(it must not already exist). As it runs, Python profiling
|
|
|
|
|
information
|
2002-07-23 03:48:15 +02:00
|
|
|
|
about each thread is logged into profiledir. Please note: This option
|
|
|
|
|
is present for debugging and optimization only, and should NOT be used
|
|
|
|
|
unless you have a specific reason to do so. It will significantly
|
|
|
|
|
slow program performance, may reduce reliability, and can generate
|
2003-01-09 00:03:58 +01:00
|
|
|
|
huge amounts of data. You must use the \fB-1\fR option when
|
|
|
|
|
you use \fB-P\fR.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fB-a \fIaccountlist\fB\fR
|
|
|
|
|
Overrides the \fIaccounts\fR option
|
|
|
|
|
in the \fIgeneral\fR section of the configuration
|
|
|
|
|
file. You might use this to exclude certain accounts, or to sync
|
|
|
|
|
some accounts that you normally prefer not to. Separate the
|
|
|
|
|
accounts by commas, and use no embedded spaces.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fB-c \fIconfigfile\fB\fR
|
|
|
|
|
Specifies a configuration file to use in lieu of
|
|
|
|
|
the default, \fI~/.offlineimaprc\fR.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fB-d \fIdebugtype[,...]\fB\fR
|
2002-08-08 22:03:36 +02:00
|
|
|
|
Enables debugging for OfflineIMAP. This is useful if
|
2002-07-12 08:43:07 +02:00
|
|
|
|
you are trying to track down a malfunction or figure out what is going
|
|
|
|
|
on under the hood. I suggest that you use this with
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fB-1\fR to make the results more sensible.
|
|
|
|
|
|
|
|
|
|
\fB-d\fR requires one or more debugtypes,
|
|
|
|
|
separated by commas. These define what exactly will be
|
2003-04-22 22:47:25 +02:00
|
|
|
|
debugged, and include three options: \fIimap\fR,
|
|
|
|
|
\fImaildir\fR, and \fIthread\fR.
|
|
|
|
|
The \fIimap\fR
|
2002-08-08 22:03:36 +02:00
|
|
|
|
option will enable IMAP protocol stream and parsing debugging. Note
|
|
|
|
|
that the output may contain passwords, so take care to remove that
|
|
|
|
|
from the debugging output before sending it to anyone else. The
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fImaildir\fR option will enable debugging for
|
2003-04-22 22:47:25 +02:00
|
|
|
|
certain Maildir operations. And \fIthread\fR
|
|
|
|
|
will debug the threading model.
|
2002-07-12 06:08:27 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fB-o\fR
|
|
|
|
|
Run only once, ignoring all
|
|
|
|
|
\fIautorefresh\fR settings in the configuration
|
|
|
|
|
file.
|
2002-07-16 01:50:52 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fB-h\fR
|
|
|
|
|
.TP
|
|
|
|
|
\fB--help\fR
|
2002-07-12 06:08:27 +02:00
|
|
|
|
Show summary of options.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fB-u \fIinterface\fB\fR
|
|
|
|
|
Specifies an alternative user interface module
|
|
|
|
|
to use. This overrides the defailt specified in the
|
|
|
|
|
configuration file. The pre-defined options are listed in
|
|
|
|
|
the User Interfaces section.
|
|
|
|
|
.SH "USER INTERFACES"
|
|
|
|
|
.PP
|
|
|
|
|
\fBOfflineIMAP\fR has a pluggable user interface system that lets you choose how the
|
2002-07-25 01:13:09 +02:00
|
|
|
|
program communicates information to you. There are two graphical
|
2003-01-07 03:37:19 +01:00
|
|
|
|
interfaces, two terminal interfaces, and two noninteractive interfaces
|
2002-07-25 01:13:09 +02:00
|
|
|
|
suitable for scripting or logging purposes. The
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fIui\fR option in the configuration file specifies
|
|
|
|
|
user interface preferences. The \fB-u\fR command-line
|
|
|
|
|
option can override the configuration file setting. The available
|
|
|
|
|
values for the configuration file or command-line are described
|
|
|
|
|
in this section.
|
|
|
|
|
.SS "TK.BLINKENLIGHTS"
|
|
|
|
|
.PP
|
|
|
|
|
Tk.Blinkenlights is an interface designed to be sleek, fun to watch, and
|
|
|
|
|
informative of the overall picture of what \fBOfflineIMAP\fR
|
2002-07-25 01:13:09 +02:00
|
|
|
|
is doing. I consider it to be the best general-purpose interface in
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBOfflineIMAP\fR.
|
|
|
|
|
.PP
|
2002-07-25 01:13:09 +02:00
|
|
|
|
Tk.Blinkenlights contains, by default, a small window with a row of
|
2003-01-09 00:03:58 +01:00
|
|
|
|
LEDs, a small log, and a row of command buttons.
|
|
|
|
|
The total size of the window is
|
2002-07-25 01:13:09 +02:00
|
|
|
|
very small, so it uses little desktop space, yet it is quite
|
2003-01-09 00:03:58 +01:00
|
|
|
|
functional. The optional, toggleable, log shows more
|
2002-07-25 01:13:09 +02:00
|
|
|
|
detail about what is happening and is color-coded to match the color
|
|
|
|
|
of the lights.
|
|
|
|
|
.PP
|
|
|
|
|
Tk.Blinkenlights is the only user interface that has configurable
|
2003-01-09 00:03:58 +01:00
|
|
|
|
parameters; see the example \fIofflineimap.conf\fR
|
2002-07-25 01:13:09 +02:00
|
|
|
|
for more details.
|
|
|
|
|
.PP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
Each light in the Blinkenlights interface represents a thread
|
|
|
|
|
of execution -- that is, a particular task that \fBOfflineIMAP\fR
|
|
|
|
|
is performing right now. The colors indicate what task
|
|
|
|
|
the particular thread is performing, and are as follows:
|
2002-07-25 01:13:09 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBBlack\fR
|
2002-07-25 01:13:09 +02:00
|
|
|
|
indicates that this light's thread has terminated; it will light up
|
|
|
|
|
again later when new threads start up. So, black indicates no
|
|
|
|
|
activity.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBRed (Meaning 1)\fR
|
2002-07-25 01:13:09 +02:00
|
|
|
|
is the color of the main program's thread, which basically does
|
|
|
|
|
nothing but monitor the others. It might remind you of HAL 9000 in
|
2003-01-09 00:03:58 +01:00
|
|
|
|
2001.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBGray\fR
|
2002-07-25 20:22:41 +02:00
|
|
|
|
indicates that the thread is establishing a new connection to the IMAP
|
|
|
|
|
server.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBPurple\fR
|
2002-07-25 01:13:09 +02:00
|
|
|
|
is the color of an account synchronization thread that is monitoring
|
|
|
|
|
the progress of the folders in that account (not generating any I/O).
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBCyan\fR
|
2002-07-25 01:13:09 +02:00
|
|
|
|
indicates that the thread is syncing a folder.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBGreen\fR
|
2002-07-25 01:13:09 +02:00
|
|
|
|
means that a folder's message list is being loaded.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBBlue\fR
|
2002-07-25 01:13:09 +02:00
|
|
|
|
is the color of a message synchronization controller thread.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBOrange\fR
|
2002-07-25 01:13:09 +02:00
|
|
|
|
indicates that an actual message is being copied.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
(We use fuschia for fake messages.)
|
2002-07-25 01:13:09 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBRed (meaning 2)\fR
|
2002-07-25 01:13:09 +02:00
|
|
|
|
indicates that a message is being deleted.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBYellow / bright orange\fR
|
|
|
|
|
indicates that message flags are being added.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBPink / bright red\fR
|
|
|
|
|
indicates that message flags are being removed.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBRed / Black Flashing\fR
|
|
|
|
|
corresponds to the countdown timer that runs between
|
|
|
|
|
synchronizations.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
.PP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
The name of this interfaces derives from a bit of computer
|
|
|
|
|
history. Eric Raymond's Jargon File defines
|
|
|
|
|
\fIblinkenlights\fR, in part, as:
|
|
|
|
|
.sp
|
2002-07-25 01:13:09 +02:00
|
|
|
|
.RS
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.PP
|
2002-07-25 01:13:09 +02:00
|
|
|
|
Front-panel diagnostic
|
|
|
|
|
lights on a computer, esp. a dinosaur. Now that dinosaurs are rare,
|
|
|
|
|
this term usually refers to status lights on a modem, network hub, or
|
|
|
|
|
the like.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.PP
|
2002-07-25 01:13:09 +02:00
|
|
|
|
This term derives from the last word of the famous blackletter-Gothic
|
|
|
|
|
sign in mangled pseudo-German that once graced about half the computer
|
|
|
|
|
rooms in the English-speaking world. One version ran in its entirety as
|
|
|
|
|
follows:
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.PP
|
|
|
|
|
\fBACHTUNG! ALLES LOOKENSPEEPERS!\fR
|
|
|
|
|
.PP
|
2002-07-25 01:13:09 +02:00
|
|
|
|
Das computermachine ist nicht fuer gefingerpoken und mittengrabben.
|
|
|
|
|
Ist easy schnappen der springenwerk, blowenfusen und poppencorken
|
|
|
|
|
mit spitzensparken. Ist nicht fuer gewerken bei das dumpkopfen.
|
|
|
|
|
Das rubbernecken sichtseeren keepen das cotten-pickenen hans in das
|
|
|
|
|
pockets muss; relaxen und watchen das blinkenlichten.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.RE
|
|
|
|
|
.SS "CURSES.BLINKENLIGHTS"
|
|
|
|
|
.PP
|
|
|
|
|
Curses.Blinkenlights is an interface very similar to Tk.Blinkenlights,
|
|
|
|
|
but is designed to be run in a console window (an xterm, Linux virtual
|
|
|
|
|
terminal, etc.) Since it doesn't have access to graphics, it isn't
|
|
|
|
|
quite as pretty, but it still gets the job done.
|
|
|
|
|
.PP
|
|
|
|
|
Please see the Tk.Blinkenlights section above for more
|
|
|
|
|
information about the colors used in this interface.
|
|
|
|
|
.SS "TK.VERBOSEUI"
|
|
|
|
|
.PP
|
|
|
|
|
Tk.VerboseUI (formerly known as Tk.TkUI) is a graphical interface
|
2002-07-25 01:13:09 +02:00
|
|
|
|
that presents a variable-sized window. In the window, each
|
|
|
|
|
currently-executing thread has a section where its name and current
|
|
|
|
|
status are displayed. This interface is best suited to people running
|
|
|
|
|
on slower connections, as you get a lot of detail, but for fast
|
|
|
|
|
connections, the detail may go by too quickly to be useful. People
|
|
|
|
|
with fast connections may wish to use Tk.Blinkenlights instead.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SS "TTY.TTYUI"
|
|
|
|
|
.PP
|
|
|
|
|
TTY.TTYUI interface is for people running in basic, non-color terminals. It
|
2003-01-07 03:37:19 +01:00
|
|
|
|
prints out basic status messages and is generally friendly to use on a console
|
2002-07-25 01:13:09 +02:00
|
|
|
|
or xterm.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SS "NONINTERACTIVE.BASIC"
|
|
|
|
|
.PP
|
|
|
|
|
Noninteractive.Basic is designed for situations in which \fBOfflineIMAP\fR
|
2002-07-25 01:13:09 +02:00
|
|
|
|
will be run non-attended and the status of its execution will be
|
|
|
|
|
logged. You might use it, for instance, to have the system run
|
|
|
|
|
automatically and
|
|
|
|
|
e-mail you the results of the synchronization. This user interface
|
|
|
|
|
is not capable of reading a password from the keyboard; account
|
|
|
|
|
passwords must be specified using one of the configuration file options.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SS "NONINTERACTIVE.QUIET"
|
|
|
|
|
.PP
|
|
|
|
|
Noninteractive.Quiet is designed for non-attended running in situations
|
2002-07-25 01:13:09 +02:00
|
|
|
|
where normal status messages are not desired. It will output nothing
|
|
|
|
|
except errors and serious warnings. Like Noninteractive.Basic,
|
|
|
|
|
this user interface
|
|
|
|
|
is not capable of reading a password from the keyboard; account
|
|
|
|
|
passwords must be specified using one of the configuration file options.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SH "EXAMPLES"
|
|
|
|
|
.PP
|
|
|
|
|
Here are some example configurations for various situations.
|
|
|
|
|
Please e-mail any other examples you have that may be useful to
|
|
|
|
|
me.
|
|
|
|
|
.SS "MULTIPLE ACCOUNTS WITH MUTT"
|
|
|
|
|
.PP
|
|
|
|
|
This example shows you how to set up \fBOfflineIMAP\fR to
|
|
|
|
|
synchronize multiple accounts with the mutt mail reader.
|
|
|
|
|
.PP
|
|
|
|
|
Start by creating a directory to hold your folders by running
|
|
|
|
|
\fBmkdir ~/Mail\fR. Then, in your
|
|
|
|
|
\fI~/.offlineimaprc\fR, specify:
|
2002-08-09 23:25:28 +02:00
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.nf
|
|
|
|
|
accounts = Personal, Work
|
|
|
|
|
.fi
|
|
|
|
|
.PP
|
2003-04-22 22:47:25 +02:00
|
|
|
|
Make sure that you have both an
|
|
|
|
|
\fI[Account Personal]\fR
|
|
|
|
|
and an \fI[Account Work]\fR section. The
|
|
|
|
|
local repository for each account must have different
|
|
|
|
|
\fIlocalfolder\fR path names.
|
|
|
|
|
Also, make sure
|
2003-01-09 00:03:58 +01:00
|
|
|
|
to enable \fI[mbnames]\fR.
|
|
|
|
|
.PP
|
2003-04-22 22:47:25 +02:00
|
|
|
|
In each local repository section, write something like this:
|
2002-08-09 23:25:28 +02:00
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.nf
|
|
|
|
|
localfolders = ~/Mail/Personal
|
|
|
|
|
.fi
|
|
|
|
|
.PP
|
|
|
|
|
Finally, add these lines to your \fI~/.muttrc\fR:
|
2002-08-09 23:25:28 +02:00
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.nf
|
|
|
|
|
source ~/path-to-mbnames-muttrc-mailboxes
|
|
|
|
|
folder-hook Personal set from="youremail@personal.com"
|
|
|
|
|
folder-hook Work set from="youremail@work.com"
|
|
|
|
|
set mbox_type=Maildir
|
|
|
|
|
set folder=$HOME/Mail
|
|
|
|
|
spoolfile=+Personal/INBOX
|
|
|
|
|
.fi
|
|
|
|
|
.PP
|
2002-07-12 08:43:07 +02:00
|
|
|
|
That's it!
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SS "UW-IMAPD AND REFERENCES"
|
|
|
|
|
.PP
|
|
|
|
|
Some users with a UW-IMAPD server need to use \fBOfflineIMAP\fR's
|
2002-07-22 07:56:21 +02:00
|
|
|
|
"reference" feature to get at their mailboxes, specifying a reference
|
|
|
|
|
of "~/Mail" or "#mh/" depending on the configuration. The below
|
2003-04-22 22:47:25 +02:00
|
|
|
|
configuration from (originally from docwhat@gerf.org)
|
2003-01-09 00:03:58 +01:00
|
|
|
|
shows using a \fIreference\fR of Mail, a \fInametrans\fR
|
|
|
|
|
that strips
|
|
|
|
|
the leading Mail/ off incoming folder names, and a
|
|
|
|
|
\fIfolderfilter\fR that
|
2002-07-22 07:56:21 +02:00
|
|
|
|
limits the folders synced to just three.
|
2002-08-09 23:25:28 +02:00
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.nf
|
2003-04-22 22:47:25 +02:00
|
|
|
|
[Account Gerf]
|
|
|
|
|
localrepository = GerfLocal
|
|
|
|
|
remoterepository = GerfRemote
|
|
|
|
|
|
|
|
|
|
[Repository GerfLocal]
|
|
|
|
|
type = Maildir
|
2003-01-09 00:03:58 +01:00
|
|
|
|
localfolders = ~/Mail
|
2003-04-22 22:47:25 +02:00
|
|
|
|
|
|
|
|
|
[Repository GerfRemote]
|
|
|
|
|
type = IMAP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
remotehost = gerf.org
|
|
|
|
|
ssl = yes
|
|
|
|
|
remoteuser = docwhat
|
|
|
|
|
reference = Mail
|
|
|
|
|
# Trims off the preceeding Mail on all the folder names.
|
|
|
|
|
nametrans = lambda foldername: \\
|
|
|
|
|
re.sub('^Mail/', '', foldername)
|
|
|
|
|
# Yeah, you have to mention the Mail dir, even though it
|
|
|
|
|
# would seem intuitive that reference would trim it.
|
|
|
|
|
folderfilter = lambda foldername: foldername in [
|
|
|
|
|
'Mail/INBOX',
|
|
|
|
|
'Mail/list/zaurus-general',
|
|
|
|
|
'Mail/list/zaurus-dev',
|
|
|
|
|
]
|
|
|
|
|
maxconnections = 1
|
|
|
|
|
holdconnectionopen = no
|
|
|
|
|
.fi
|
|
|
|
|
.SS "PYTHONFILE CONFIGURATION FILE OPTION"
|
|
|
|
|
.PP
|
|
|
|
|
You can have \fBOfflineIMAP\fR
|
|
|
|
|
load up a Python file before evaluating the
|
2002-08-09 23:25:28 +02:00
|
|
|
|
configuration file options that are Python expressions. This example
|
|
|
|
|
is based on one supplied by Tommi Virtanen for this feature.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.PP
|
|
|
|
|
In \fI~/.offlineimap.rc\fR, he adds these options:
|
2002-08-09 23:25:28 +02:00
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.nf
|
|
|
|
|
[general]
|
|
|
|
|
pythonfile=~/.offlineimap.py
|
2003-04-22 22:47:25 +02:00
|
|
|
|
[Repository foo]
|
2003-01-09 00:03:58 +01:00
|
|
|
|
foldersort=mycmp
|
|
|
|
|
.fi
|
|
|
|
|
.PP
|
|
|
|
|
Then, the \fI~/.offlineimap.py\fR file will
|
|
|
|
|
contain:
|
2002-08-09 23:25:28 +02:00
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.nf
|
|
|
|
|
prioritized = ['INBOX', 'personal', 'announce', 'list']
|
2002-08-09 23:25:28 +02:00
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
|
def mycmp(x, y):
|
|
|
|
|
for prefix in prioritized:
|
|
|
|
|
if x.startswith(prefix):
|
|
|
|
|
return -1
|
|
|
|
|
elif y.startswith(prefix):
|
|
|
|
|
return +1
|
|
|
|
|
return cmp(x, y)
|
2002-08-09 23:25:28 +02:00
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
|
def test_mycmp():
|
|
|
|
|
import os, os.path
|
|
|
|
|
folders=os.listdir(os.path.expanduser('~/data/mail/tv@hq.yok.utu.fi'))
|
|
|
|
|
folders.sort(mycmp)
|
|
|
|
|
print folders
|
|
|
|
|
.fi
|
|
|
|
|
.PP
|
|
|
|
|
This code snippet illustrates how the \fIfoldersort\fR
|
|
|
|
|
option can be customized with a Python function from the
|
|
|
|
|
\fIpythonfile\fR to always synchronize certain
|
|
|
|
|
folders first.
|
|
|
|
|
.SH "ERRORS"
|
|
|
|
|
.PP
|
2002-07-12 08:43:07 +02:00
|
|
|
|
If you get one of some frequently-encountered or confusing errors,
|
|
|
|
|
please check this section.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SS "UID VALIDITY PROBLEM FOR FOLDER"
|
|
|
|
|
.PP
|
2002-07-12 08:43:07 +02:00
|
|
|
|
IMAP servers use a unique ID (UID) to refer to a specific message.
|
|
|
|
|
This number is guaranteed to be unique to a particular message
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBforever\fR.
|
|
|
|
|
No other message in the same folder will ever get the same
|
|
|
|
|
UID. UIDs are an integral part of \fBOfflineIMAP\fR's synchronization
|
2002-07-12 08:43:07 +02:00
|
|
|
|
scheme; they are used to match up messages on your computer to
|
|
|
|
|
messages on the server.
|
|
|
|
|
.PP
|
|
|
|
|
Sometimes, the UIDs on the server might get reset. Usually this will
|
|
|
|
|
happen if you delete and then recreate a folder. When you create a
|
|
|
|
|
folder, the server will often start the UID back from 1. But
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBOfflineIMAP\fR might still have the UIDs from the previous folder by the
|
|
|
|
|
same name stored. \fBOfflineIMAP\fR will detect this condition and skip the
|
2002-07-12 08:43:07 +02:00
|
|
|
|
folder. This is GOOD, because it prevents data loss.
|
|
|
|
|
.PP
|
|
|
|
|
You can fix it by removing your local folder and cache data. For
|
2003-01-09 00:03:58 +01:00
|
|
|
|
instance, if your folders are under \fI~/Folders\fR
|
|
|
|
|
and the folder with the problem is INBOX, you'd type this:
|
|
|
|
|
|
|
|
|
|
.nf
|
|
|
|
|
rm -r ~/Folders/INBOX
|
2003-04-22 22:47:25 +02:00
|
|
|
|
rm -r ~/.offlineimap/Account-\fIAccountName\fR
|
|
|
|
|
rm -r ~/.offlineimap/Repository-\fIRepositoryName\fR
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.fi
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.PP
|
2003-04-22 22:47:25 +02:00
|
|
|
|
(Of course, replace AccountName and RepositoryName
|
|
|
|
|
with the names as specified
|
2003-01-09 00:03:58 +01:00
|
|
|
|
in \fI~/.offlineimaprc\fR).
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.PP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
Next time you run \fBOfflineIMAP\fR, it will re-download
|
|
|
|
|
the folder with the
|
2002-07-12 08:43:07 +02:00
|
|
|
|
new UIDs. Note that the procedure specified above will lose any local
|
|
|
|
|
changes made to the folder.
|
|
|
|
|
.PP
|
|
|
|
|
Some IMAP servers are broken and do not support UIDs properly. If you
|
|
|
|
|
continue to get this error for all your folders even after performing
|
|
|
|
|
the above procedure, it is likely that your IMAP server falls into
|
2003-01-09 00:03:58 +01:00
|
|
|
|
this category. \fBOfflineIMAP\fR is incompatible with such servers.
|
|
|
|
|
Using \fBOfflineIMAP\fR with them will not destroy any mail, but at the same time,
|
|
|
|
|
it will not actually synchronize it either. (\fBOfflineIMAP\fR will detect
|
|
|
|
|
this condition and abort prior to synchronization.)
|
2003-04-22 22:47:25 +02:00
|
|
|
|
.PP
|
|
|
|
|
This question comes up frequently on the
|
|
|
|
|
\fBOfflineIMAP\fR
|
|
|
|
|
mailing list <URL:http://lists.complete.org/offlineimap@complete.org/>. You can find a
|
|
|
|
|
detailed
|
|
|
|
|
discussion <URL:http://lists.complete.org/offlineimap@complete.org/2003/04/msg00012.html.gz> of the problem there.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SH "OTHER FREQUENTLY ASKED QUESTIONS"
|
|
|
|
|
.PP
|
|
|
|
|
There are some other FAQs that might not fit into another section
|
|
|
|
|
of the document, so they are discussed here.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBWhat platforms does OfflineIMAP run on?\fR
|
2002-07-12 08:43:07 +02:00
|
|
|
|
It should run on most platforms supported by Python, which are quite a
|
|
|
|
|
few.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBI'm using Mutt. Other IMAP sync programs require me to use "set maildir_trash=yes". Do I need to do that with OfflineIMAP?\fR
|
|
|
|
|
No. \fBOfflineIMAP\fR is smart enough to figure out message deletion without this extra
|
2002-07-12 08:43:07 +02:00
|
|
|
|
crutch. You'll get the best results if you don't use this setting, in
|
|
|
|
|
fact.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBHow do I specify the names of my folders?\fR
|
|
|
|
|
You do not need to. \fBOfflineIMAP\fR is smart
|
|
|
|
|
enough to automatically figure out what folders are present
|
2002-07-12 08:43:07 +02:00
|
|
|
|
on the IMAP server and synchronize them. You can use the
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fIfolderfilter\fR and \fIfoldertrans\fR
|
2002-07-12 08:43:07 +02:00
|
|
|
|
configuration file options to request certain folders and rename them
|
|
|
|
|
as they come in if you like.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBHow can I prevent certain folders from being synced?\fR
|
|
|
|
|
Use the \fIfolderfilter\fR option in the configuration file.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBHow can I add or delete a folder?\fR
|
|
|
|
|
\fBOfflineIMAP\fR does not currently provide this feature, but if you create a new
|
2002-07-12 08:43:07 +02:00
|
|
|
|
folder on the IMAP server, it will be created locally automatically.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBAre there any other warnings that I should be aware of?\fR
|
|
|
|
|
Yes; see the Notes section below.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBWhat is the mailbox name recorder (mbnames) for?\fR
|
|
|
|
|
Some mail readers, such as Mutt, are not capable
|
|
|
|
|
of automatically determining the names of your mailboxes.
|
|
|
|
|
\fBOfflineIMAP\fR can help these programs by writing the names
|
|
|
|
|
of the folders ni a format you specify. See the example
|
|
|
|
|
\fIofflineimap.conf\fR for details.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBCan I synchronize multiple accounts with OfflineIMAP?\fR
|
|
|
|
|
Sure. Just name them all in the
|
|
|
|
|
\fIaccounts\fR line in the \fIgeneral\fR
|
|
|
|
|
section of the configuration file, and add a per-account section
|
|
|
|
|
for each one.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBDoes OfflineIMAP support POP?\fR
|
2002-07-12 08:43:07 +02:00
|
|
|
|
No. POP is not robust enough to do a completely reliable
|
2003-01-09 00:03:58 +01:00
|
|
|
|
multi-machine synchronization like \fBOfflineIMAP\fR can do. \fBOfflineIMAP\fR
|
2002-07-12 08:43:07 +02:00
|
|
|
|
will not support it.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBDoes OfflineIMAP support mailbox formats other than Maildir?\fR
|
2002-07-12 08:43:07 +02:00
|
|
|
|
Not at present. There is no technical reason not to; just no
|
|
|
|
|
demand yet. Maildir is a superior format anyway.
|
2003-04-22 22:47:25 +02:00
|
|
|
|
However, \fBOfflineIMAP\fR can sync between two IMAP
|
|
|
|
|
servers, and some IMAP servers support other formats. You
|
|
|
|
|
could install an IMAP server on your local machine and have
|
|
|
|
|
\fBOfflineIMAP\fR sync to that.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fB[technical] Why are your Maildir message filenames so huge?\fR
|
|
|
|
|
\fBOfflineIMAP\fR has two relevant principles: 1) never modifying your
|
2002-07-12 08:43:07 +02:00
|
|
|
|
messages in any way and 2) ensuring 100% reliable synchronizations.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
In order to do a reliable sync, \fBOfflineIMAP\fR
|
2002-07-12 08:43:07 +02:00
|
|
|
|
must have a way to
|
|
|
|
|
uniquely identify each e-mail. Three pieces of information are
|
|
|
|
|
required to do this: your account name, the folder name, and the
|
|
|
|
|
message UID. The account name can be calculated from the path in
|
|
|
|
|
which your messages are. The folder name can usually be as well, BUT
|
|
|
|
|
some mail clients move messages between folders by simply moving the
|
|
|
|
|
file, leaving the name intact.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
|
|
|
|
|
So, \fBOfflineIMAP\fR must store both a UID folder ID. The folder ID is
|
|
|
|
|
necessary so \fBOfflineIMAP\fR can detect a message moved to a different
|
|
|
|
|
folder. \fBOfflineIMAP\fR stores the UID (U= number) and an md5sum of the
|
2002-07-12 08:43:07 +02:00
|
|
|
|
foldername (FMD5= number) to facilitate this.
|
|
|
|
|
.TP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBWhat is the speed of OfflineIMAP's sync?\fR
|
|
|
|
|
OfflineIMAP
|
2002-07-12 08:43:07 +02:00
|
|
|
|
versions 2.0 and above contain a multithreaded system. A good way to
|
2003-01-09 00:03:58 +01:00
|
|
|
|
experiment is by setting \fImaxsyncaccounts\fR to 3 and \fImaxconnections\fR to 3
|
2002-07-12 08:43:07 +02:00
|
|
|
|
in each account clause.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
|
This lets OfflineIMAP open up multiple connections simultaneously.
|
|
|
|
|
That will let it process multiple folders and messages at once. In
|
|
|
|
|
most cases, this will increase performance of the sync.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
|
Don't set the number too high. If you do that, things might actually
|
|
|
|
|
slow down as your link gets saturated. Also, too many connections can
|
|
|
|
|
cause mail servers to have excessive load. Administrators might take
|
|
|
|
|
unkindly to this, and the server might bog down. There are many
|
|
|
|
|
variables in the optimal setting; experimentation may help.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
|
An informal benchmark yields these results for my setup:
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.RS
|
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
2002-07-12 08:43:07 +02:00
|
|
|
|
10 minutes with MacOS X Mail.app "manual cache"
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
2002-07-12 08:43:07 +02:00
|
|
|
|
5 minutes with GNUS agent sync
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
2002-07-12 08:43:07 +02:00
|
|
|
|
20 seconds with OfflineIMAP 1.x
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
2002-07-12 08:43:07 +02:00
|
|
|
|
9 seconds with OfflineIMAP 2.x
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
2002-07-12 08:43:07 +02:00
|
|
|
|
3 seconds with OfflineIMAP 3.x "cold start"
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2 seconds with OfflineIMAP 3.x "held connection"
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.RE
|
|
|
|
|
.SH "CONFORMING TO"
|
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
2002-07-12 08:43:07 +02:00
|
|
|
|
Internet Message Access Protocol version 4rev1 (IMAP 4rev1) as
|
|
|
|
|
specified in RFC2060
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
2002-11-02 23:30:41 +01:00
|
|
|
|
CRAM-MD5 as specified in RFC2195
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
2002-07-12 08:43:07 +02:00
|
|
|
|
Maildir as specified in
|
2003-01-09 00:03:58 +01:00
|
|
|
|
the Maildir manpage <URL:http://www.qmail.org/qmail-manual-html/man5/maildir.html> and
|
|
|
|
|
the qmail website <URL:http://cr.yp.to/proto/maildir.html>.
|
|
|
|
|
.TP 0.2i
|
|
|
|
|
\(bu
|
2002-07-12 08:43:07 +02:00
|
|
|
|
Standard Python 2.2.1 as implemented on POSIX-compliant systems.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SH "NOTES"
|
|
|
|
|
.SS "DELETING LOCAL FOLDERS"
|
|
|
|
|
.PP
|
|
|
|
|
\fBOfflineIMAP\fR does a two-way synchronization. That is, if you
|
2002-07-12 08:43:07 +02:00
|
|
|
|
make a change to the mail on the server, it will be propogated to your
|
|
|
|
|
local copy, and vise-versa. Some people might think that it would be
|
|
|
|
|
wise to just delete all their local mail folders periodically. If you
|
2003-01-09 00:03:58 +01:00
|
|
|
|
do this with \fBOfflineIMAP\fR, remember to also remove your local status
|
|
|
|
|
cache (\fI~/.offlineimap\fR by default). Otherwise, \fBOfflineIMAP\fR will take
|
2002-07-12 08:43:07 +02:00
|
|
|
|
this as an intentional deletion of many messages and will interpret
|
|
|
|
|
your action as requesting them to be deleted from the server as well.
|
|
|
|
|
(If you don't understand this, don't worry; you probably won't
|
|
|
|
|
encounter this situation)
|
2003-02-06 03:56:24 +01:00
|
|
|
|
.SS "MULTIPLE INSTANCES"
|
|
|
|
|
.PP
|
|
|
|
|
\fBOfflineIMAP\fR is not designed to have several instances (for instance, a cron job and an interactive invocation) run over the same
|
|
|
|
|
mailbox simultaneously. It will perform a check on startup and
|
|
|
|
|
abort if another \fBOfflineIMAP\fR is already running. If you need
|
|
|
|
|
to schedule synchronizations, please use the
|
|
|
|
|
\fIautorefresh\fR settings rather than cron.
|
|
|
|
|
Alternatively, you can set a separate \fImetadata\fR
|
|
|
|
|
directory for each instance.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SS "COPYING MESSAGES BETWEEN FOLDERS"
|
|
|
|
|
.PP
|
2002-07-18 02:51:03 +02:00
|
|
|
|
Normally, when you copy a message between folders or add a new message
|
2003-01-09 00:03:58 +01:00
|
|
|
|
to a folder locally, \fBOfflineIMAP\fR
|
2002-07-18 02:51:03 +02:00
|
|
|
|
will just do the right thing. However, sometimes this can be tricky
|
|
|
|
|
-- if your IMAP server does not provide the SEARCH command, or does
|
2003-01-09 00:03:58 +01:00
|
|
|
|
not return something useful, \fBOfflineIMAP\fR
|
2002-07-18 02:51:03 +02:00
|
|
|
|
cannot determine the new UID of the message. So, in these rare
|
|
|
|
|
instances, OfflineIMAP will upload the message to the IMAP server and
|
|
|
|
|
delete it from your local folder. Then, on your next sync, the
|
|
|
|
|
message will be re-downloaded with the proper UID.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBOfflineIMAP\fR makes sure that the message was properly uploaded before deleting it,
|
2002-07-18 02:51:03 +02:00
|
|
|
|
so there should be no risk of data loss.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SS "USE WITH EVOLUTION"
|
|
|
|
|
.PP
|
|
|
|
|
\fBOfflineIMAP\fR can work with Evolution. To do so, first configure
|
|
|
|
|
your \fBOfflineIMAP\fR account to have
|
|
|
|
|
\fBsep = /\fR in its configuration. Then, configure
|
|
|
|
|
Evolution with the
|
2002-11-20 05:34:09 +01:00
|
|
|
|
"Maildir-format mail directories" server type. For the path, you will need to
|
|
|
|
|
specify the name of the top-level folder
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBinside\fR your \fBOfflineIMAP\fR storage location.
|
|
|
|
|
You're now set!
|
|
|
|
|
.SS "USE WITH KMAIL"
|
|
|
|
|
.PP
|
2003-04-22 22:47:25 +02:00
|
|
|
|
At this time, I believe that \fBOfflineIMAP\fR with Maildirs
|
|
|
|
|
is not compatible
|
2003-01-09 00:03:58 +01:00
|
|
|
|
with KMail. KMail cannot work in any mode other than to move
|
2002-11-20 05:34:09 +01:00
|
|
|
|
all messages out of all folders immediately, which (besides being annoying
|
2003-04-22 22:47:25 +02:00
|
|
|
|
and fundamentally broken) is incompatible with
|
|
|
|
|
\fBOfflineIMAP\fR.
|
|
|
|
|
.PP
|
|
|
|
|
However, I have made KMail version 3 work well with
|
|
|
|
|
\fBOfflineIMAP\fR by installing an IMAP server on my local
|
|
|
|
|
machine, having \fBOfflineIMAP\fR sync to that, and pointing
|
|
|
|
|
KMail at the same server.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SS "MAILING LIST"
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.PP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
There is an OfflineIMAP mailing list available.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
To subscribe, send the text "Subscribe" in the subject of a mail to
|
|
|
|
|
offlineimap-request@complete.org. To post, send the message to
|
2003-04-22 22:47:25 +02:00
|
|
|
|
offlineimap@complete.org. Archives are available at
|
|
|
|
|
<URL:http://lists.complete.org/offlineimap@complete.org/>.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SS "BUGS"
|
|
|
|
|
.PP
|
2002-07-20 10:35:48 +02:00
|
|
|
|
Reports of bugs should be sent via e-mail to the
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBOfflineIMAP\fR bug-tracking system (BTS) at
|
|
|
|
|
offlineimap@bugs.complete.org or submitted online using
|
|
|
|
|
the web interface <URL:http://bugs.complete.org/>.
|
|
|
|
|
.PP
|
2002-07-22 07:56:21 +02:00
|
|
|
|
The Web site also lists all current bugs, where you can check their
|
|
|
|
|
status or contribute to fixing them.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
.SH "COPYRIGHT"
|
|
|
|
|
.PP
|
2003-04-22 22:47:25 +02:00
|
|
|
|
OfflineIMAP, and this manual, are Copyright <20> 2002, 2003 John Goerzen.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.PP
|
|
|
|
|
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
|
2003-04-16 21:23:45 +02:00
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
(at your option) any later version.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.PP
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
.PP
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2003-01-09 00:03:58 +01:00
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
.PP
|
|
|
|
|
imaplib.py comes from the Python dev tree and is licensed under
|
|
|
|
|
the GPL-compatible PSF license as stated in the file
|
|
|
|
|
\fICOPYRIGHT\fR in the \fBOfflineIMAP\fR
|
|
|
|
|
distribution.
|
|
|
|
|
.SH "AUTHOR"
|
|
|
|
|
.PP
|
|
|
|
|
\fBOfflineIMAP\fR, its libraries, documentation, and all included files, except where
|
2002-07-12 08:43:07 +02:00
|
|
|
|
noted, was written by John Goerzen <jgoerzen@complete.org> and
|
|
|
|
|
copyright is held as stated in the COPYRIGHT section.
|
|
|
|
|
.PP
|
2003-02-06 03:56:24 +01:00
|
|
|
|
\fBOfflineIMAP\fR may be downloaded, and information found, from its
|
2003-01-09 00:03:58 +01:00
|
|
|
|
homepage via either Gopher <URL:gopher://quux.org/1/devel/offlineimap>
|
|
|
|
|
or HTTP <URL:http://quux.org/devel/offlineimap>.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
.PP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
\fBOfflineIMAP\fR may also be downloaded using Subversion. Additionally,
|
2002-07-18 03:00:59 +02:00
|
|
|
|
the distributed tar.gz may be updated with a simple "svn update"
|
|
|
|
|
command; it is ready to go. For information on getting OfflineIMAP
|
2003-01-09 00:03:58 +01:00
|
|
|
|
with Subversion, please visit the
|
|
|
|
|
complete.org Subversion page <URL:http://svn.complete.org/>.
|
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
|
.PP
|
|
|
|
|
\fBmutt\fR(1),
|
|
|
|
|
\fBpython\fR(1)
|