2003-01-09 00:03:58 +01:00
|
|
|
OFFLINEIMAP(1) OfflineIMAP Manual OFFLINEIMAP(1)
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NAME
|
2002-11-02 23:30:41 +01:00
|
|
|
OfflineIMAP - Powerful IMAP/Maildir synchronization and reader support
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
SYNOPSIS
|
2002-11-02 23:30:41 +01:00
|
|
|
offlineimap [ -1 ] [ -P profiledir ] [ -a accountlist ] [ -c configfile
|
2003-06-02 21:06:18 +02:00
|
|
|
] [ -d debugtype[,...] ] [ -l filename ] [ -o ] [ -u interface ]
|
2003-01-09 00:03:58 +01:00
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
offlineimap -h | --help
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
DESCRIPTION
|
2003-01-09 00:03:58 +01:00
|
|
|
OfflineIMAP is a tool to simplify your e-mail reading. With
|
2002-11-02 23:30:41 +01:00
|
|
|
OfflineIMAP, 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. OfflineIMAP 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.
|
|
|
|
|
|
|
|
OfflineIMAP is FAST; it synchronizes my two accounts with over 50 fold-
|
|
|
|
ers 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, OfflineIMAP features a multi-threaded synchro-
|
|
|
|
nization algorithm that can dramatically speed up performance in many
|
|
|
|
situations by synchronizing several different things simultaneously.
|
|
|
|
|
|
|
|
OfflineIMAP is FLEXIBLE; you can customize which folders are synced via
|
|
|
|
regular expressions, lists, or Python expressions; a versatile and com-
|
|
|
|
prehensive 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 sup-
|
|
|
|
ported; and esoteric IMAP features are supported to ensure compatibil-
|
|
|
|
ity with the widest variety of IMAP servers.
|
|
|
|
|
|
|
|
OfflineIMAP is SAFE; it uses an algorithm designed to prevent mail loss
|
|
|
|
at all costs. Because of the design of this algorithm, even program-
|
|
|
|
ming 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
|
2003-01-09 00:03:58 +01:00
|
|
|
of OfflineIMAP pre-release, development, and beta releases. Of course,
|
|
|
|
legally speaking, OfflineIMAP comes with no warranty, so I am not
|
|
|
|
responsible if this turns out to be wrong.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
METHOD OF OPERATION
|
2003-04-22 22:47:25 +02:00
|
|
|
OfflineIMAP traditionally operates by maintaining a hierarchy of 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.
|
|
|
|
OfflineIMAP 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.
|
|
|
|
|
|
|
|
With OfflineIMAP 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 OfflineIMAP and their mail reader of choice at it. This
|
|
|
|
is often preferable to the mail reader's own IMAP support since
|
|
|
|
OfflineIMAP supports many features (offline reading, for one) that most
|
2003-07-19 01:54:18 +02:00
|
|
|
IMAP-aware readers don't. However, this feature is not as time-tested
|
|
|
|
as traditional syncing, so my advice is to stick with normal methods of
|
|
|
|
operation for the time being.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
QUICK START
|
|
|
|
If you have already installed OfflineIMAP system-wide, or your system
|
2004-06-04 22:26:30 +02:00
|
|
|
administrator has done that for you, your task for setting up
|
2003-01-09 00:03:58 +01:00
|
|
|
OfflineIMAP for the first time is quite simple. You just need to set
|
|
|
|
up your configuration file, make your folder directory, and run it!
|
|
|
|
|
|
|
|
You can quickly set up your configuration file. The distribution
|
|
|
|
includes a file offlineimap.conf.minimal (Debian users may find this at
|
|
|
|
/usr/share/doc/offlineimap/examples/offlineimap.conf.minimal) that is a
|
|
|
|
basic example of setting of OfflineIMAP. You can simply copy this file
|
|
|
|
into your home directory and name it .offlineimaprc (note the leading
|
|
|
|
period). A command such as cp offlineimap.conf.minimal
|
|
|
|
~/.offlineimaprc will do it. Or, if you prefer, you can just copy this
|
|
|
|
text to ~/.offlineimaprc:
|
|
|
|
|
|
|
|
[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
|
|
|
|
|
|
|
|
Now, edit the ~/.offlineimaprc file with your favorite editor. All you
|
|
|
|
have to do is specify a directory for your folders to be in (on the
|
|
|
|
localfolders line), the host name of your IMAP server (on the remote-
|
|
|
|
host line), and your login name on the remote (on the remoteuser line).
|
|
|
|
That's it!
|
|
|
|
|
|
|
|
To run OfflineIMAP, you just have to say offlineimap -- it will fire
|
|
|
|
up, ask you for a login password if necessary, synchronize your fold-
|
|
|
|
ers, 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 OfflineIMAP FIVE TIMES FASTER FOR JUST $19.95 (err, well, $0),
|
|
|
|
you have to read on!
|
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
INSTALLATION
|
2003-01-09 00:03:58 +01:00
|
|
|
If you are reading this document via the "man" command, it is likely
|
2002-11-02 23:30:41 +01:00
|
|
|
that you have no installation tasks to perform; your system administra-
|
2003-01-09 00:03:58 +01:00
|
|
|
tor has already installed it. If you need to install it yourself, you
|
2002-11-02 23:30:41 +01:00
|
|
|
have three options: a system-wide installation with Debian, system-wide
|
2003-01-09 00:03:58 +01:00
|
|
|
installation with other systems, and a single-user installation. You
|
|
|
|
can download the latest version of OfflineIMAP from the OfflineIMAP
|
|
|
|
website <URL:http://quux.org/devel/offlineimap/>.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
PREREQUISITES
|
2003-01-09 00:03:58 +01:00
|
|
|
In order to use OfflineIMAP, you need to have these conditions satis-
|
2002-11-02 23:30:41 +01:00
|
|
|
fied:
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
o Your mail server must support IMAP. Most Internet Service Providers
|
|
|
|
and corporate networks do, and most operating systems have an IMAP
|
|
|
|
implementation readily available.
|
|
|
|
|
|
|
|
o You must have Python version 2.2.1 or above installed. If you are
|
|
|
|
running on Debian GNU/Linux, this requirement will automatically be
|
|
|
|
taken care of for you. If you do not have Python already, check with
|
|
|
|
your system administrator or operating system vendor; or, download it
|
|
|
|
from the Python website <URL:http://www.python.org/>. If you intend
|
|
|
|
to use the Tk interface, you must have Tkinter (python-tk) installed.
|
|
|
|
If you intend to use the SSL interface, your Python must have been
|
|
|
|
built with SSL support.
|
|
|
|
|
|
|
|
o 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
|
2003-04-22 22:47:25 +02:00
|
|
|
with OfflineIMAP. If you do not have a mail reader that supports
|
|
|
|
Maildir, you can often install a local IMAP server and point both
|
|
|
|
OfflineIMAP and your mail reader at it.
|
2003-01-09 00:03:58 +01:00
|
|
|
|
|
|
|
SYSTEM-WIDE INSTALLATION, DEBIAN
|
|
|
|
If you are tracking Debian unstable, you may install OfflineIMAP by
|
2002-11-02 23:30:41 +01:00
|
|
|
simply running the following command as root:
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
apt-get install offlineimap
|
|
|
|
|
2002-11-02 23:30:41 +01:00
|
|
|
If you are not tracking Debian unstable, download the Debian .deb pack-
|
2003-01-09 00:03:58 +01:00
|
|
|
age from the OfflineIMAP website
|
|
|
|
<URL:http://quux.org/devel/offlineimap/> and then run dpkg -i to
|
|
|
|
install the downloaded package. Then, skip to [XRef to CONFIGURATION]
|
|
|
|
below. You will type offlineimap to invoke the program.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
SYSTEM-WIDE INSTALLATION, OTHER
|
|
|
|
Download the tar.gz version of the package from the website
|
|
|
|
<URL:http://quux.org/devel/offlineimap/>. Then run these commands,
|
|
|
|
making sure that you are the "root" user first:
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-07 03:37:19 +01:00
|
|
|
tar -zxvf offlineimap_x.y.z.tar.gz
|
2002-07-12 08:43:07 +02:00
|
|
|
cd offlineimap-x.y.z
|
2003-01-07 03:37:19 +01:00
|
|
|
python2.2 setup.py install
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
On some systems, you will need to use python instead of python2.2.
|
|
|
|
Next, proceed to [XRef to CONFIGURATION] below. You will type
|
|
|
|
offlineimap to invoke the program.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
SINGLE-ACCOUNT INSTALLATION
|
2003-01-09 00:03:58 +01:00
|
|
|
Download the tar.gz version of the package from the website
|
|
|
|
<URL:http://quux.org/devel/offlineimap/>. Then run these commands:
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
tar -zxvf offlineimap_x.y.z.tar.gz
|
2002-07-12 08:43:07 +02:00
|
|
|
cd offlineimap-x.y.z
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
When you want to run OfflineIMAP, you will issue the cd command as
|
|
|
|
above and then type ./offlineimap.py; there is no installation step
|
2002-11-02 23:30:41 +01:00
|
|
|
necessary.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
CONFIGURATION
|
2003-01-09 00:03:58 +01:00
|
|
|
OfflineIMAP is regulated by a configuration file that is normally
|
|
|
|
stored in ~/.offlineimaprc. OfflineIMAP ships with a file named
|
|
|
|
offlineimap.conf that you should copy to that location and then edit.
|
|
|
|
This file is vital to proper operation of the system; it sets every-
|
2002-11-02 23:30:41 +01:00
|
|
|
thing you need to run OfflineIMAP. Full documentation for the configu-
|
|
|
|
ration file is included within the sample file.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
OfflineIMAP also ships a file named offlineimap.conf.minimal that you
|
|
|
|
can also try. It's useful if you want to get started with the most
|
|
|
|
basic feature set, and you can read about other features later with
|
2003-01-07 04:37:27 +01:00
|
|
|
offlineimap.conf.
|
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
OPTIONS
|
2003-01-09 00:03:58 +01:00
|
|
|
Most configuration is done via the configuration file. Nevertheless,
|
|
|
|
there are a few command-line options that you may set for OfflineIMAP.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
-1 Disable most multithreading operations and use solely a single-
|
|
|
|
connection sync. This effectively sets the maxsyncaccounts and
|
|
|
|
all maxconnections configuration file variables to 1.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2002-07-23 03:48:15 +02:00
|
|
|
-P profiledir
|
2003-01-07 04:37:27 +01:00
|
|
|
Sets OfflineIMAP into profile mode. The program will create
|
2002-11-02 23:30:41 +01:00
|
|
|
profiledir (it must not already exist). As it runs, Python pro-
|
2003-01-07 04:37:27 +01:00
|
|
|
filing information about each thread is logged into profiledir.
|
|
|
|
Please note: This option is present for debugging and optimiza-
|
|
|
|
tion only, and should NOT be used unless you have a specific
|
|
|
|
reason to do so. It will significantly slow program perfor-
|
|
|
|
mance, may reduce reliability, and can generate huge amounts of
|
2002-11-02 23:30:41 +01:00
|
|
|
data. You must use the -1 option when you use -P.
|
2002-07-23 03:48:15 +02:00
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
-a accountlist
|
2003-01-09 00:03:58 +01:00
|
|
|
Overrides the accounts option in the general section of the con-
|
|
|
|
figuration 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
|
|
|
|
|
|
|
-c configfile
|
2003-01-07 04:37:27 +01:00
|
|
|
Specifies a configuration file to use in lieu of the default,
|
2002-11-02 23:30:41 +01:00
|
|
|
~/.offlineimaprc.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
-d debugtype[,...]
|
2003-01-07 04:37:27 +01:00
|
|
|
Enables debugging for OfflineIMAP. This is useful if you are
|
|
|
|
trying to track down a malfunction or figure out what is going
|
2003-01-09 00:03:58 +01:00
|
|
|
on under the hood. I suggest that you use this with -1 to make
|
|
|
|
the results more sensible.
|
|
|
|
|
|
|
|
-d requires one or more debugtypes, separated by commas. These
|
2003-04-22 22:47:25 +02:00
|
|
|
define what exactly will be debugged, and include three options:
|
|
|
|
imap, maildir, and thread. The imap option will enable IMAP
|
|
|
|
protocol stream and parsing debugging. Note that the output may
|
|
|
|
contain passwords, so take care to remove that from the debug-
|
|
|
|
ging output before sending it to anyone else. The maildir
|
|
|
|
option will enable debugging for certain Maildir operations.
|
|
|
|
And thread will debug the threading model.
|
2002-11-02 23:30:41 +01:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
-l filename
|
|
|
|
Enables logging to filename. This will log everything that goes
|
|
|
|
to the screen to the specified file. Additionally, if any
|
|
|
|
debugging is specified with -d, then debug messages will not go
|
|
|
|
to the screen, but instead to the logfile only.
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
-o Run only once, ignoring all autorefresh settings in the configu-
|
|
|
|
ration file.
|
2002-11-02 23:30:41 +01:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
-h
|
2002-07-16 04:26:58 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
--help Show summary of options.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
-u interface
|
2003-06-02 21:06:18 +02:00
|
|
|
Specifies an alternative user interface module to use. This
|
2004-06-04 22:26:30 +02:00
|
|
|
overrides the default specified in the configuration file. The
|
2003-01-09 00:03:58 +01:00
|
|
|
pre-defined options are listed in the User Interfaces section.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
|
|
|
USER INTERFACES
|
2003-06-02 21:06:18 +02:00
|
|
|
OfflineIMAP has a pluggable user interface system that lets you choose
|
2002-11-02 23:30:41 +01:00
|
|
|
how the program communicates information to you. There are two graphi-
|
2003-06-02 21:06:18 +02:00
|
|
|
cal interfaces, two terminal interfaces, and two noninteractive inter-
|
2002-11-02 23:30:41 +01:00
|
|
|
faces suitable for scripting or logging purposes. The ui option in the
|
2003-06-02 21:06:18 +02:00
|
|
|
configuration file specifies user interface preferences. The -u com-
|
|
|
|
mand-line option can override the configuration file setting. The
|
2003-01-09 00:03:58 +01:00
|
|
|
available values for the configuration file or command-line are
|
|
|
|
described in this section.
|
|
|
|
|
|
|
|
TK.BLINKENLIGHTS
|
2003-06-02 21:06:18 +02:00
|
|
|
Tk.Blinkenlights is an interface designed to be sleek, fun to watch,
|
2003-01-09 00:03:58 +01:00
|
|
|
and informative of the overall picture of what OfflineIMAP is doing. I
|
|
|
|
consider it to be the best general-purpose interface in OfflineIMAP.
|
|
|
|
|
2003-06-02 21:06:18 +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
|
2003-06-02 21:06:18 +02:00
|
|
|
window is 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 detail about what
|
|
|
|
is happening and is color-coded to match the color of the lights.
|
2003-01-07 03:37:19 +01:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
Tk.Blinkenlights is the only user interface that has configurable
|
2002-11-02 23:30:41 +01:00
|
|
|
parameters; see the example offlineimap.conf for more details.
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
Each light in the Blinkenlights interface represents a thread of execu-
|
|
|
|
tion -- that is, a particular task that OfflineIMAP is performing right
|
2003-06-02 21:06:18 +02:00
|
|
|
now. The colors indicate what task the particular thread is perform-
|
2003-01-09 00:03:58 +01:00
|
|
|
ing, and are as follows:
|
2002-11-02 23:30:41 +01:00
|
|
|
|
|
|
|
Black indicates that this light's thread has terminated; it will light
|
2003-06-02 21:06:18 +02:00
|
|
|
up again later when new threads start up. So, black indicates
|
2002-11-02 23:30:41 +01:00
|
|
|
no activity.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
|
|
|
Red (Meaning 1)
|
2003-06-02 21:06:18 +02:00
|
|
|
is the color of the main program's thread, which basically does
|
2002-11-02 23:30:41 +01:00
|
|
|
nothing but monitor the others. It might remind you of HAL 9000
|
|
|
|
in 2001.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
Gray indicates that the thread is establishing a new connection to
|
2002-11-02 23:30:41 +01:00
|
|
|
the IMAP server.
|
2002-08-08 08:28:34 +02:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
Purple is the color of an account synchronization thread that is moni-
|
2002-11-02 23:30:41 +01:00
|
|
|
toring the progress of the folders in that account (not generat-
|
|
|
|
ing any I/O).
|
2002-07-25 01:13:09 +02:00
|
|
|
|
|
|
|
Cyan indicates that the thread is syncing a folder.
|
|
|
|
|
|
|
|
Green means that a folder's message list is being loaded.
|
|
|
|
|
2002-11-02 23:30:41 +01:00
|
|
|
Blue is the color of a message synchronization controller thread.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
Orange indicates that an actual message is being copied. (We use fuch-
|
|
|
|
sia for fake messages.)
|
2002-07-25 01:13:09 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
Red (meaning 2)
|
2002-07-25 01:13:09 +02:00
|
|
|
indicates that a message is being deleted.
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
Yellow / bright orange
|
|
|
|
indicates that message flags are being added.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
Pink / bright red
|
|
|
|
indicates that message flags are being removed.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
|
|
|
Red / Black Flashing
|
2003-06-02 21:06:18 +02:00
|
|
|
corresponds to the countdown timer that runs between synchro-
|
2002-11-02 23:30:41 +01:00
|
|
|
nizations.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
The name of this interfaces derives from a bit of computer history.
|
2003-01-09 00:03:58 +01:00
|
|
|
Eric Raymond's Jargon File defines blinkenlights, in part, as:
|
|
|
|
|
2002-07-25 01:13:09 +02:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
Front-panel diagnostic lights on a computer, esp. a dinosaur.
|
|
|
|
Now that dinosaurs are rare, this term usually refers to status
|
2002-11-02 23:30:41 +01:00
|
|
|
lights on a modem, network hub, or the like.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
This term derives from the last word of the famous blackletter-
|
2002-11-02 23:30:41 +01:00
|
|
|
Gothic sign in mangled pseudo-German that once graced about half
|
2003-06-02 21:06:18 +02:00
|
|
|
the computer rooms in the English-speaking world. One version
|
2002-11-02 23:30:41 +01:00
|
|
|
ran in its entirety as follows:
|
2002-07-25 01:13:09 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
ACHTUNG! ALLES LOOKENSPEEPERS!
|
2002-07-25 01:13:09 +02:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
Das computermachine ist nicht fuer gefingerpoken und mitten-
|
|
|
|
grabben. Ist easy schnappen der springenwerk, blowenfusen und
|
|
|
|
poppencorken mit spitzensparken. Ist nicht fuer gewerken bei
|
2002-11-02 23:30:41 +01:00
|
|
|
das dumpkopfen. Das rubbernecken sichtseeren keepen das cotten-
|
2003-06-02 21:06:18 +02:00
|
|
|
pickenen hans in das pockets muss; relaxen und watchen das
|
2002-11-02 23:30:41 +01:00
|
|
|
blinkenlichten.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
CURSES.BLINKENLIGHTS
|
2003-06-02 21:06:18 +02:00
|
|
|
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
|
2003-01-09 00:03:58 +01:00
|
|
|
quite as pretty, but it still gets the job done.
|
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
Please see the Tk.Blinkenlights section above for more information
|
2003-01-09 00:03:58 +01:00
|
|
|
about the colors used in this interface.
|
|
|
|
|
|
|
|
TK.VERBOSEUI
|
2003-06-02 21:06:18 +02:00
|
|
|
Tk.VerboseUI (formerly known as Tk.TkUI) is a graphical interface that
|
|
|
|
presents a variable-sized window. In the window, each currently-exe-
|
|
|
|
cuting thread has a section where its name and current status are dis-
|
2003-01-09 00:03:58 +01:00
|
|
|
played. This interface is best suited to people running on slower con-
|
2003-06-02 21:06:18 +02:00
|
|
|
nections, as you get a lot of detail, but for fast connections, the
|
|
|
|
detail may go by too quickly to be useful. People with fast connec-
|
2002-11-02 23:30:41 +01:00
|
|
|
tions may wish to use Tk.Blinkenlights instead.
|
2002-07-25 01:13:09 +02:00
|
|
|
|
|
|
|
TTY.TTYUI
|
2003-06-02 21:06:18 +02:00
|
|
|
TTY.TTYUI interface is for people running in basic, non-color termi-
|
2003-01-09 00:03:58 +01:00
|
|
|
nals. It prints out basic status messages and is generally friendly to
|
|
|
|
use on a console or xterm.
|
|
|
|
|
|
|
|
NONINTERACTIVE.BASIC
|
2003-06-02 21:06:18 +02:00
|
|
|
Noninteractive.Basic is designed for situations in which OfflineIMAP
|
|
|
|
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 auto-
|
2003-01-09 00:03:58 +01:00
|
|
|
matically and e-mail you the results of the synchronization. This user
|
2003-06-02 21:06:18 +02:00
|
|
|
interface is not capable of reading a password from the keyboard;
|
2003-01-09 00:03:58 +01:00
|
|
|
account passwords must be specified using one of the configuration file
|
|
|
|
options.
|
|
|
|
|
|
|
|
NONINTERACTIVE.QUIET
|
|
|
|
Noninteractive.Quiet is designed for non-attended running in situations
|
2003-06-02 21:06:18 +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;
|
2002-11-02 23:30:41 +01:00
|
|
|
account passwords must be specified using one of the configuration file
|
|
|
|
options.
|
2002-07-16 04:26:58 +02:00
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
EXAMPLES
|
2003-01-09 00:03:58 +01:00
|
|
|
Here are some example configurations for various situations. Please e-
|
|
|
|
mail any other examples you have that may be useful to me.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
MULTIPLE ACCOUNTS WITH MUTT
|
2003-06-02 21:06:18 +02:00
|
|
|
This example shows you how to set up OfflineIMAP to synchronize multi-
|
2002-11-02 23:30:41 +01:00
|
|
|
ple accounts with the mutt mail reader.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
Start by creating a directory to hold your folders by running mkdir
|
2003-01-09 00:03:58 +01:00
|
|
|
~/Mail. Then, in your ~/.offlineimaprc, specify:
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
accounts = Personal, Work
|
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
Make sure that you have both an [Account Personal] and an [Account
|
2003-04-22 22:47:25 +02:00
|
|
|
Work] section. The local repository for each account must have differ-
|
|
|
|
ent localfolder path names. Also, make sure to enable [mbnames].
|
2003-01-09 00:03:58 +01:00
|
|
|
|
2003-04-22 22:47:25 +02:00
|
|
|
In each local repository section, write something like this:
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
localfolders = ~/Mail/Personal
|
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
Finally, add these lines to your ~/.muttrc:
|
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
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
|
2003-01-09 00:03:58 +01:00
|
|
|
spoolfile=+Personal/INBOX
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
That's it!
|
|
|
|
|
2002-07-22 07:56:21 +02:00
|
|
|
UW-IMAPD AND REFERENCES
|
2002-11-02 23:30:41 +01:00
|
|
|
Some users with a UW-IMAPD server need to use OfflineIMAP's "reference"
|
2003-06-02 21:06:18 +02:00
|
|
|
feature to get at their mailboxes, specifying a reference of "~/Mail"
|
2002-11-02 23:30:41 +01:00
|
|
|
or "#mh/" depending on the configuration. The below configuration from
|
2003-06-02 21:06:18 +02:00
|
|
|
(originally from docwhat@gerf.org) shows using a reference of Mail, a
|
|
|
|
nametrans that strips the leading Mail/ off incoming folder names, and
|
2003-04-22 22:47:25 +02:00
|
|
|
a folderfilter that limits the folders synced to just three.
|
|
|
|
|
|
|
|
[Account Gerf]
|
|
|
|
localrepository = GerfLocal
|
|
|
|
remoterepository = GerfRemote
|
2002-07-22 07:56:21 +02:00
|
|
|
|
2003-04-22 22:47:25 +02:00
|
|
|
[Repository GerfLocal]
|
|
|
|
type = Maildir
|
2002-07-22 07:56:21 +02:00
|
|
|
localfolders = ~/Mail
|
2003-04-22 22:47:25 +02:00
|
|
|
|
|
|
|
[Repository GerfRemote]
|
|
|
|
type = IMAP
|
2002-07-22 07:56:21 +02: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 [
|
2003-01-09 00:03:58 +01:00
|
|
|
'Mail/INBOX',
|
|
|
|
'Mail/list/zaurus-general',
|
|
|
|
'Mail/list/zaurus-dev',
|
|
|
|
]
|
2002-07-22 07:56:21 +02:00
|
|
|
maxconnections = 1
|
|
|
|
holdconnectionopen = no
|
|
|
|
|
2002-08-10 03:52:09 +02:00
|
|
|
PYTHONFILE CONFIGURATION FILE OPTION
|
2003-06-02 21:06:18 +02:00
|
|
|
You can have OfflineIMAP load up a Python file before evaluating the
|
|
|
|
configuration file options that are Python expressions. This example
|
2002-11-02 23:30:41 +01:00
|
|
|
is based on one supplied by Tommi Virtanen for this feature.
|
2002-08-10 03:52:09 +02:00
|
|
|
|
|
|
|
In ~/.offlineimap.rc, he adds these options:
|
|
|
|
|
|
|
|
[general]
|
|
|
|
pythonfile=~/.offlineimap.py
|
2003-04-22 22:47:25 +02:00
|
|
|
[Repository foo]
|
2002-08-10 03:52:09 +02:00
|
|
|
foldersort=mycmp
|
|
|
|
|
|
|
|
Then, the ~/.offlineimap.py file will contain:
|
|
|
|
|
|
|
|
prioritized = ['INBOX', 'personal', 'announce', 'list']
|
|
|
|
|
|
|
|
def mycmp(x, y):
|
|
|
|
for prefix in prioritized:
|
2004-06-04 22:26:30 +02:00
|
|
|
xsw = x.startswith(prefix)
|
|
|
|
ysw = y.startswith(prefix)
|
|
|
|
if xsw and ysw:
|
|
|
|
return cmp(x, y)
|
|
|
|
elif xsw:
|
|
|
|
return -1
|
|
|
|
elif ysw:
|
|
|
|
return +1
|
2002-08-10 03:52:09 +02:00
|
|
|
return cmp(x, y)
|
|
|
|
|
|
|
|
def test_mycmp():
|
|
|
|
import os, os.path
|
2003-01-09 00:03:58 +01:00
|
|
|
folders=os.listdir(os.path.expanduser('~/data/mail/tv@hq.yok.utu.fi'))
|
2002-08-10 03:52:09 +02:00
|
|
|
folders.sort(mycmp)
|
|
|
|
print folders
|
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
This code snippet illustrates how the foldersort option can be cus-
|
|
|
|
tomized with a Python function from the pythonfile to always synchro-
|
2002-11-02 23:30:41 +01:00
|
|
|
nize certain folders first.
|
2002-08-10 03:52:09 +02:00
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
ERRORS
|
2003-06-02 21:06:18 +02:00
|
|
|
If you get one of some frequently-encountered or confusing errors,
|
2002-11-02 23:30:41 +01:00
|
|
|
please check this section.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
UID VALIDITY PROBLEM FOR FOLDER
|
2003-06-02 21:06:18 +02:00
|
|
|
IMAP servers use a unique ID (UID) to refer to a specific message.
|
2003-01-09 00:03:58 +01:00
|
|
|
This number is guaranteed to be unique to a particular message forever.
|
2003-06-02 21:06:18 +02:00
|
|
|
No other message in the same folder will ever get the same UID. UIDs
|
|
|
|
are an integral part of OfflineIMAP's synchronization scheme; they are
|
2002-11-02 23:30:41 +01:00
|
|
|
used to match up messages on your computer to messages on the server.
|
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
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
|
|
|
|
OfflineIMAP might still have the UIDs from the previous folder by the
|
|
|
|
same name stored. OfflineIMAP will detect this condition and skip the
|
2002-11-02 23:30:41 +01:00
|
|
|
folder. This is GOOD, because it prevents data loss.
|
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
You can fix it by removing your local folder and cache data. For
|
|
|
|
instance, if your folders are under ~/Folders and the folder with the
|
2002-11-02 23:30:41 +01:00
|
|
|
problem is INBOX, you'd type this:
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
rm -r ~/Folders/INBOX
|
2003-04-22 22:47:25 +02:00
|
|
|
rm -r ~/.offlineimap/Account-AccountName
|
|
|
|
rm -r ~/.offlineimap/Repository-RepositoryName
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
(Of course, replace AccountName and RepositoryName with the names as
|
2003-04-22 22:47:25 +02:00
|
|
|
specified in ~/.offlineimaprc).
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
Next time you run OfflineIMAP, it will re-download the folder with the
|
|
|
|
new UIDs. Note that the procedure specified above will lose any local
|
2002-11-02 23:30:41 +01:00
|
|
|
changes made to the folder.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
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
|
2002-11-02 23:30:41 +01:00
|
|
|
the above procedure, it is likely that your IMAP server falls into this
|
|
|
|
category. OfflineIMAP is incompatible with such servers. Using
|
2003-06-02 21:06:18 +02:00
|
|
|
OfflineIMAP with them will not destroy any mail, but at the same time,
|
|
|
|
it will not actually synchronize it either. (OfflineIMAP will detect
|
2003-01-09 00:03:58 +01:00
|
|
|
this condition and abort prior to synchronization.)
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
This question comes up frequently on the OfflineIMAP mailing list
|
2003-04-22 22:47:25 +02:00
|
|
|
<URL:http://lists.complete.org/offlineimap@complete.org/>. You can
|
2003-06-02 21:06:18 +02:00
|
|
|
find a detailed discussion <URL:http://lists.com-
|
2003-04-22 22:47:25 +02:00
|
|
|
plete.org/offlineimap@complete.org/2003/04/msg00012.html.gz> of the
|
|
|
|
problem there.
|
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
OTHER FREQUENTLY ASKED QUESTIONS
|
2003-06-02 21:06:18 +02:00
|
|
|
There are some other FAQs that might not fit into another section of
|
2003-01-09 00:03:58 +01:00
|
|
|
the document, so they are discussed here.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
What platforms does OfflineIMAP run on?
|
2003-06-02 21:06:18 +02:00
|
|
|
It should run on most platforms supported by Python, which are
|
2002-11-02 23:30:41 +01:00
|
|
|
quite a few.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-06-02 21:06:18 +02:00
|
|
|
I'm using Mutt. Other IMAP sync programs require me to use "set
|
2003-01-09 00:03:58 +01:00
|
|
|
maildir_trash=yes". Do I need to do that with OfflineIMAP?
|
2003-06-02 21:06:18 +02:00
|
|
|
No. OfflineIMAP is smart enough to figure out message deletion
|
|
|
|
without this extra crutch. You'll get the best results if you
|
2002-11-02 23:30:41 +01:00
|
|
|
don't use this setting, in fact.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-07-19 01:54:18 +02:00
|
|
|
I've upgraded and now OfflineIMAP crashes when I start it up! Why?
|
|
|
|
You need to upgrade your configuration file. See [XRef to
|
|
|
|
UPGRADING.4.0] at the end of this manual.
|
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
How do I specify the names of my folders?
|
2003-07-19 01:54:18 +02:00
|
|
|
You do not need to. OfflineIMAP is smart enough to automati-
|
2002-11-02 23:30:41 +01:00
|
|
|
cally figure out what folders are present on the IMAP server and
|
2003-07-19 01:54:18 +02:00
|
|
|
synchronize them. You can use the folderfilter and foldertrans
|
2002-11-02 23:30:41 +01:00
|
|
|
configuration file options to request certain folders and rename
|
2002-07-12 08:43:07 +02:00
|
|
|
them as they come in if you like.
|
|
|
|
|
|
|
|
How can I prevent certain folders from being synced?
|
2002-11-02 23:30:41 +01:00
|
|
|
Use the folderfilter option in the configuration file.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
How can I add or delete a folder?
|
2003-07-19 01:54:18 +02:00
|
|
|
OfflineIMAP does not currently provide this feature, but if you
|
|
|
|
create a new folder on the IMAP server, it will be created
|
2002-11-02 23:30:41 +01:00
|
|
|
locally automatically.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
Are there any other warnings that I should be aware of?
|
2003-01-09 00:03:58 +01:00
|
|
|
Yes; see the Notes section below.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
What is the mailbox name recorder (mbnames) for?
|
2003-07-19 01:54:18 +02:00
|
|
|
Some mail readers, such as Mutt, are not capable of automati-
|
|
|
|
cally determining the names of your mailboxes. OfflineIMAP can
|
2004-06-04 22:26:30 +02:00
|
|
|
help these programs by writing the names of the folders in a
|
2003-01-09 00:03:58 +01:00
|
|
|
format you specify. See the example offlineimap.conf for
|
|
|
|
details.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
Can I synchronize multiple accounts with OfflineIMAP?
|
2003-07-19 01:54:18 +02:00
|
|
|
Sure. Just name them all in the accounts line in the general
|
2003-01-09 00:03:58 +01:00
|
|
|
section of the configuration file, and add a per-account section
|
|
|
|
for each one.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
Does OfflineIMAP support POP?
|
2002-11-02 23:30:41 +01:00
|
|
|
No. POP is not robust enough to do a completely reliable multi-
|
2003-07-19 01:54:18 +02:00
|
|
|
machine synchronization like OfflineIMAP can do. OfflineIMAP
|
2002-11-02 23:30:41 +01:00
|
|
|
will not support it.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
Does OfflineIMAP support mailbox formats other than Maildir?
|
2003-07-19 01:54:18 +02:00
|
|
|
Not at present. There is no technical reason not to; just no
|
|
|
|
demand yet. Maildir is a superior format anyway. However,
|
|
|
|
OfflineIMAP can sync between two IMAP servers, and some IMAP
|
2003-04-22 22:47:25 +02:00
|
|
|
servers support other formats. You could install an IMAP server
|
|
|
|
on your local machine and have OfflineIMAP sync to that.
|
2002-11-02 23:30:41 +01:00
|
|
|
|
|
|
|
[technical] Why are your Maildir message filenames so huge?
|
|
|
|
OfflineIMAP has two relevant principles: 1) never modifying your
|
2004-06-04 22:26:30 +02:00
|
|
|
messages in any way and 2) ensuring 100% reliable
|
|
|
|
synchronizations. In order to do a reliable sync, OfflineIMAP
|
|
|
|
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 cal-
|
|
|
|
culated 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.
|
|
|
|
|
|
|
|
So, OfflineIMAP must store both a UID folder ID. The folder ID
|
2002-11-02 23:30:41 +01:00
|
|
|
is necessary so OfflineIMAP can detect a message moved to a dif-
|
2004-06-04 22:26:30 +02:00
|
|
|
ferent folder. OfflineIMAP stores the UID (U= number) and an
|
2002-11-02 23:30:41 +01:00
|
|
|
md5sum of the foldername (FMD5= number) to facilitate this.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
What is the speed of OfflineIMAP's sync?
|
2004-06-04 22:26:30 +02:00
|
|
|
OfflineIMAP versions 2.0 and above contain a multithreaded sys-
|
|
|
|
tem. A good way to experiment is by setting maxsyncaccounts to
|
2002-11-02 23:30:41 +01:00
|
|
|
3 and maxconnections to 3 in each account clause.
|
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
This lets OfflineIMAP open up multiple connections simultane-
|
|
|
|
ously. That will let it process multiple folders and messages
|
|
|
|
at once. In most cases, this will increase performance of the
|
2002-11-02 23:30:41 +01:00
|
|
|
sync.
|
|
|
|
|
2004-06-04 22:26:30 +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.
|
2002-11-02 23:30:41 +01:00
|
|
|
Administrators might take unkindly to this, and the server might
|
2004-06-04 22:26:30 +02:00
|
|
|
bog down. There are many variables in the optimal setting;
|
2002-11-02 23:30:41 +01:00
|
|
|
experimentation may help.
|
|
|
|
|
|
|
|
An informal benchmark yields these results for my setup:
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
o 10 minutes with MacOS X Mail.app "manual cache"
|
|
|
|
|
|
|
|
o 5 minutes with GNUS agent sync
|
|
|
|
|
|
|
|
o 20 seconds with OfflineIMAP 1.x
|
|
|
|
|
|
|
|
o 9 seconds with OfflineIMAP 2.x
|
|
|
|
|
|
|
|
o 3 seconds with OfflineIMAP 3.x "cold start"
|
|
|
|
|
|
|
|
o 2 seconds with OfflineIMAP 3.x "held connection"
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
CONFORMING TO
|
2003-01-09 00:03:58 +01:00
|
|
|
o Internet Message Access Protocol version 4rev1 (IMAP 4rev1) as speci-
|
2003-07-19 01:54:18 +02:00
|
|
|
fied in RFC2060 and RFC3501
|
2002-11-02 23:30:41 +01:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
o CRAM-MD5 as specified in RFC2195
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
o Maildir as specified in the Maildir manpage
|
2003-01-09 00:03:58 +01:00
|
|
|
<URL:http://www.qmail.org/qmail-manual-html/man5/maildir.html> and
|
|
|
|
the qmail website <URL:http://cr.yp.to/proto/maildir.html>.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
o Standard Python 2.2.1 as implemented on POSIX-compliant systems.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
NOTES
|
|
|
|
DELETING LOCAL FOLDERS
|
2004-06-04 22:26:30 +02:00
|
|
|
OfflineIMAP does a two-way synchronization. That is, if you make a
|
|
|
|
change to the mail on the server, it will be propagated to your local
|
2002-11-02 23:30:41 +01:00
|
|
|
copy, and vise-versa. Some people might think that it would be wise to
|
2004-06-04 22:26:30 +02:00
|
|
|
just delete all their local mail folders periodically. If you do this
|
|
|
|
with OfflineIMAP, remember to also remove your local status cache
|
|
|
|
(~/.offlineimap by default). Otherwise, OfflineIMAP will take this as
|
2002-11-02 23:30:41 +01:00
|
|
|
an intentional deletion of many messages and will interpret your action
|
2004-06-04 22:26:30 +02:00
|
|
|
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
|
2002-11-02 23:30:41 +01:00
|
|
|
situation)
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-02-06 03:56:24 +01:00
|
|
|
MULTIPLE INSTANCES
|
2004-06-04 22:26:30 +02:00
|
|
|
OfflineIMAP 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 OfflineIMAP is already running. If you need to schedule syn-
|
|
|
|
chronizations, please use the autorefresh settings rather than cron.
|
|
|
|
Alternatively, you can set a separate metadata directory for each
|
2003-02-06 03:56:24 +01:00
|
|
|
instance.
|
|
|
|
|
2002-07-18 03:12:42 +02:00
|
|
|
COPYING MESSAGES BETWEEN FOLDERS
|
2004-06-04 22:26:30 +02:00
|
|
|
Normally, when you copy a message between folders or add a new message
|
|
|
|
to a folder locally, OfflineIMAP will just do the right thing. How-
|
2002-11-02 23:30:41 +01:00
|
|
|
ever, sometimes this can be tricky -- if your IMAP server does not pro-
|
2004-06-04 22:26:30 +02:00
|
|
|
vide the SEARCH command, or does not return something useful,
|
|
|
|
OfflineIMAP 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. OfflineIMAP makes
|
|
|
|
sure that the message was properly uploaded before deleting it, so
|
2002-11-02 23:30:41 +01:00
|
|
|
there should be no risk of data loss.
|
2002-07-18 03:12:42 +02:00
|
|
|
|
2003-01-07 03:37:19 +01:00
|
|
|
USE WITH EVOLUTION
|
2004-06-04 22:26:30 +02:00
|
|
|
OfflineIMAP can work with Evolution. To do so, first configure your
|
|
|
|
OfflineIMAP account to have sep = / in its configuration. Then, con-
|
|
|
|
figure Evolution with the "Maildir-format mail directories" server
|
2003-01-09 00:03:58 +01:00
|
|
|
type. For the path, you will need to specify the name of the top-level
|
|
|
|
folder inside your OfflineIMAP storage location. You're now set!
|
2003-01-07 03:37:19 +01:00
|
|
|
|
|
|
|
USE WITH KMAIL
|
2004-06-04 22:26:30 +02:00
|
|
|
At this time, I believe that OfflineIMAP with Maildirs is not compati-
|
|
|
|
ble with KMail. KMail cannot work in any mode other than to move 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 OfflineIMAP.
|
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
However, I have made KMail version 3 work well with OfflineIMAP by
|
|
|
|
installing an IMAP server on my local machine, having OfflineIMAP sync
|
2003-04-22 22:47:25 +02:00
|
|
|
to that, and pointing KMail at the same server.
|
2003-01-07 03:37:19 +01:00
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
MAILING LIST
|
2003-01-09 00:03:58 +01:00
|
|
|
There is an OfflineIMAP mailing list available. To subscribe, send the
|
2004-06-04 22:26:30 +02:00
|
|
|
text "Subscribe" in the subject of a mail to offlineimap-request@com-
|
|
|
|
plete.org. To post, send the message to offlineimap@complete.org.
|
2003-04-22 22:47:25 +02:00
|
|
|
Archives are available at
|
|
|
|
<URL:http://lists.complete.org/offlineimap@complete.org/>.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-01-09 00:03:58 +01:00
|
|
|
BUGS
|
2002-11-02 23:30:41 +01:00
|
|
|
Reports of bugs should be sent via e-mail to the OfflineIMAP bug-track-
|
2004-06-04 22:26:30 +02:00
|
|
|
ing system (BTS) at offlineimap@bugs.complete.org or submitted online
|
2003-01-09 00:03:58 +01:00
|
|
|
using the web interface <URL:http://bugs.complete.org/>.
|
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
The Web site also lists all current bugs, where you can check their
|
2003-01-09 00:03:58 +01:00
|
|
|
status or contribute to fixing them.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-07-19 01:54:18 +02:00
|
|
|
UPGRADING TO 4.0
|
2004-06-04 22:26:30 +02:00
|
|
|
If you are upgrading from a version of OfflineIMAP prior to 3.99.12,
|
|
|
|
you will find that you will get errors when OfflineIMAP starts up
|
|
|
|
(relating to ConfigParser or AccountHashGenerator) and the configura-
|
|
|
|
tion file. This is because the config file format had to change to
|
|
|
|
accommodate new features in 4.0. Fortunately, it's not difficult to
|
2003-07-19 01:54:18 +02:00
|
|
|
adjust it to suit.
|
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
First thing you need to do is stop any running OfflineIMAP instance,
|
|
|
|
making sure first that it's synced all your mail. Then, modify your
|
|
|
|
~/.offlineimaprc file. You'll need to split up each account section
|
2003-07-19 01:54:18 +02:00
|
|
|
(make sure that it now starts with "Account ") into two Repository sec-
|
2004-06-04 22:26:30 +02:00
|
|
|
tions (one for the local side and another for the remote side.) See
|
|
|
|
the files offlineimap.conf.minimal and offlineimap.conf in the distri-
|
2003-07-19 01:54:18 +02:00
|
|
|
bution if you need more assistance.
|
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
OfflineIMAP's status directory area has also changed. Therefore, you
|
|
|
|
should delete everything in ~/.offlineimap as well as your local mail
|
2003-07-19 01:54:18 +02:00
|
|
|
folders.
|
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
When you start up OfflineIMAP 4.0, it will re-download all your mail
|
2003-07-19 01:54:18 +02:00
|
|
|
from the server and then you can continue using it like normal.
|
|
|
|
|
2002-07-12 08:43:07 +02:00
|
|
|
COPYRIGHT
|
2004-06-04 22:26:30 +02:00
|
|
|
OfflineIMAP, and this manual, are Copyright (C) 2002, 2003 John
|
2003-06-02 21:06:18 +02:00
|
|
|
Goerzen.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2002-11-02 23:30:41 +01:00
|
|
|
This program is free software; you can redistribute it and/or modify it
|
2004-06-04 22:26:30 +02:00
|
|
|
under the terms of the GNU General Public License as published by the
|
|
|
|
Free Software Foundation; either version 2 of the License, or (at your
|
2003-04-16 21:23:45 +02:00
|
|
|
option) any later version.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
This program is distributed in the hope that it will be useful, but
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of MER-
|
|
|
|
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
2003-07-19 01:54:18 +02:00
|
|
|
Public License for more details.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2002-11-02 23:30:41 +01:00
|
|
|
You should have received a copy of the GNU General Public License along
|
2003-01-09 00:03:58 +01:00
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
imaplib.py comes from the Python dev tree and is licensed under the
|
|
|
|
GPL-compatible PSF license as stated in the file COPYRIGHT in the
|
2003-01-09 00:03:58 +01:00
|
|
|
OfflineIMAP distribution.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
AUTHOR
|
2004-06-04 22:26:30 +02:00
|
|
|
OfflineIMAP, its libraries, documentation, and all included files,
|
2002-11-02 23:30:41 +01:00
|
|
|
except where noted, was written by John Goerzen <jgoerzen@complete.org>
|
|
|
|
and copyright is held as stated in the COPYRIGHT section.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2003-02-06 03:56:24 +01:00
|
|
|
OfflineIMAP may be downloaded, and information found, from its homepage
|
2004-06-04 22:26:30 +02:00
|
|
|
via either Gopher <URL:gopher://quux.org/1/devel/offlineimap> or HTTP
|
2003-01-09 00:03:58 +01:00
|
|
|
<URL:http://quux.org/devel/offlineimap>.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2002-11-02 23:30:41 +01:00
|
|
|
OfflineIMAP may also be downloaded using Subversion. Additionally, the
|
2004-06-04 22:26:30 +02:00
|
|
|
distributed tar.gz may be updated with a simple "svn update" command;
|
2003-01-07 03:37:19 +01:00
|
|
|
it is ready to go. For information on getting OfflineIMAP with Subver-
|
2004-06-04 22:26:30 +02:00
|
|
|
sion, please visit the complete.org Subversion page
|
2003-01-09 00:03:58 +01:00
|
|
|
<URL:http://svn.complete.org/>.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
|
|
|
SEE ALSO
|
2003-01-09 00:03:58 +01:00
|
|
|
mutt(1), python(1)
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
HISTORY
|
|
|
|
Detailed history may be found in the file ChangeLog in the OfflineIMAP
|
|
|
|
distribution. Feature and bug histories may be found in the file
|
|
|
|
debian/changelog which, despite its name, is not really Debian-spe-
|
|
|
|
cific. This section provides a large overview.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
Development on OfflineIMAP began on June 18, 2002. Version 1.0.0 was
|
|
|
|
released three days later on June 21, 2002. Point releases followed,
|
|
|
|
including speed optimizations and some compatibility fixes.
|
2002-07-12 08:43:07 +02:00
|
|
|
|
2004-06-04 22:26:30 +02:00
|
|
|
Version 2.0.0 was released on July 3, 2002, and represented the first
|
|
|
|
time the synchronization became multithreaded and, to the best of my
|
|
|
|
knowledge, the first multithreaded IMAP syncrhonizing application in
|
|
|
|
existance. The last 2.0.x release, 2.0.8, was made on July 9.
|
|
|
|
|
|
|
|
Version 3.0.0 was released on July 11, 2002, and introduced modular
|
|
|
|
user interfaces and the first GUI interface for OfflineIMAP. This man-
|
|
|
|
ual also was introduced with 3.0.0, along with many command-line
|
|
|
|
options. Version 3.1.0 was released on July 21, adding the Noninterac-
|
|
|
|
tive user interfaces, profiling support, and several bugfixes. 3.2.0
|
|
|
|
was released on July 24, adding support for the Blinkenlights GUI
|
|
|
|
interface. OfflineIMAP entered maintenance mode for awhile, as it had
|
|
|
|
reached a feature-complete milestone in my mind.
|
|
|
|
|
|
|
|
The 3.99.x branch began in on October 7, 2002, to begin work for 4.0.
|
|
|
|
The Curses.Blinkenlights interface was added in 3.99.6, and many archi-
|
|
|
|
tectural changes were made.
|
|
|
|
|
|
|
|
4.0.0 was released on July 18, 2003, including the ability to synchro-
|
|
|
|
nize directly between two IMAP servers, the first re-architecting of
|
|
|
|
the configuration file to refine the notion of an account, and the new
|
|
|
|
Curses interface.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
John Goerzen 04 June 2004 OFFLINEIMAP(1)
|