]> code.delx.au - offlineimap/blob - offlineimap/head/offlineimap.sgml
518bf73926ff0830321165ba219030a02e410268
[offlineimap] / offlineimap / head / offlineimap.sgml
1 <!DOCTYPE reference PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2 <!ENTITY OfflineIMAP "<application>OfflineIMAP</application>">
3 ]>
4 <!-- -*- DocBook -*- -->
5 <!-- "file:///usr/share/sgml/docbook/dtd/xml/4.2/docbookx.dtd"> -->
6
7 <reference>
8 <title>OfflineIMAP Manual</title>
9
10 <refentry>
11 <refentryinfo>
12 <address><email>jgoerzen@complete.org</email></address>
13 <author><firstname>John</firstname><surname>Goerzen</surname></author>
14 <date>$Date$</date>
15 </refentryinfo>
16
17 <refmeta>
18 <refentrytitle>offlineimap</refentrytitle>
19 <manvolnum>1</manvolnum>
20 <refmiscinfo>John Goerzen</refmiscinfo>
21 </refmeta>
22
23 <refnamediv>
24 <refname>OfflineIMAP</refname>
25 <refpurpose>Powerful IMAP/Maildir synchronization
26 and reader support</refpurpose>
27 </refnamediv>
28
29 <refsynopsisdiv>
30 <cmdsynopsis>
31 <command>offlineimap</command>
32 <arg>-1</arg>
33 <arg>-P <replaceable>profiledir</replaceable></arg>
34 <arg>-a <replaceable>accountlist</replaceable></arg>
35 <arg>-c <replaceable>configfile</replaceable></arg>
36 <arg>-d <replaceable>debugtype[,...]</replaceable></arg>
37 <arg>-o</arg>
38 <arg>-u <replaceable>interface</replaceable></arg>
39 </cmdsynopsis>
40 <cmdsynopsis>
41 <command>offlineimap</command>
42 <group choice="plain"><arg>-h</arg><arg>--help</arg></group>
43 </cmdsynopsis>
44 </refsynopsisdiv>
45
46 <refsect1>
47 <title>Description</title>
48
49 <para>&OfflineIMAP; is a tool to simplify your e-mail
50 reading. With &OfflineIMAP;, you can read the same mailbox
51 from multiple computers. You get a current copy of your
52 messages on each computer, and changes you make one place will be
53 visible on all other systems. For instance, you can delete a message
54 on your home computer, and it will appear deleted on your work
55 computer as well. &OfflineIMAP; is also useful if you want to
56 use a mail reader that does not have IMAP support, has poor IMAP
57 support, or does not provide disconnected operation.
58 </para>
59
60 <para>&OfflineIMAP; is <emphasis>FAST</emphasis>; it synchronizes
61 my two accounts with over 50 folders in 3 seconds. Other
62 similar tools might take over a minute, and achieve a
63 less-reliable result. Some mail readers can take over 10
64 minutes to do the same thing, and some don't even support it
65 at all. Unlike other mail tools, &OfflineIMAP; features a
66 multi-threaded synchronization algorithm that can dramatically
67 speed up performance in many situations by synchronizing
68 several different things simultaneously.
69 </para>
70
71 <para>&OfflineIMAP; is <emphasis>FLEXIBLE</emphasis>; you can
72 customize which folders are synced via regular expressions,
73 lists, or Python expressions; a versatile and comprehensive
74 configuration file is used to control behavior; two user
75 interfaces are built-in; fine-tuning of synchronization
76 performance is possible; internal or external automation is
77 supported; SSL and PREAUTH tunnels are both supported; offline
78 (or "unplugged") reading is supported; and esoteric IMAP
79 features are supported to ensure compatibility with the widest
80 variety of IMAP servers.
81 </para>
82
83 <para>&OfflineIMAP; is <emphasis>SAFE</emphasis>; it uses an
84 algorithm designed to prevent mail loss at all costs. Because
85 of the design of this algorithm, even programming errors
86 should not result in loss of mail. I am so confident in the
87 algorithm that I use my own personal and work accounts for
88 testing of &OfflineIMAP; pre-release, development, and beta
89 releases. Of course, legally speaking, &OfflineIMAP; comes
90 with no warranty, so I am not responsible if this turns out
91 to be wrong.
92 </para>
93
94 <refsect2>
95 <title>Method of Operation</title>
96
97 <para>&OfflineIMAP; operates by maintaining a hierarchy of
98 mail folders in Maildir format locally. Your own mail
99 reader will read mail from this tree, and need never know
100 that the mail comes from IMAP. &OfflineIMAP; will detect
101 changes to the mail folders on your IMAP server and your own
102 computer and bi-directionally synchronize them, copying,
103 marking, and deleting messages as necessary.
104 </para>
105 </refsect2>
106 </refsect1>
107
108 <refsect1>
109 <title>Quick Start</title>
110 <para>If you have already installed &OfflineIMAP; system-wide,
111 or your system adminstrator has done that for you, your task
112 for setting up &OfflineIMAP; for the first time is quite
113 simple. You just need to set up your configuration file, make
114 your folder directory, and run it!
115 </para>
116
117 <para>You can quickly set up your configuration file. The distribution
118 includes a file <filename>offlineimap.conf.minimal</filename>
119 (Debian users
120 may find this at
121 <filename>/usr/share/doc/offlineimap/examples/offlineimap.conf.minimal</filename>) that is a basic example of setting of &OfflineIMAP;. You can
122 simply copy this file into your home directory and name it
123 <filename>.offlineimaprc</filename> (note the leading period). A
124 command such as <command>cp offlineimap.conf.minimal ~/.offlineimaprc</command> will do it. Or, if you prefer, you can just copy this text to
125 <filename>~/.offlineimaprc</filename>:
126 </para>
127
128 <PROGRAMLISTING>[general]
129 accounts = Test
130
131 [Test]
132 localfolders = ~/Test
133 remotehost = examplehost
134 remoteuser = jgoerzen
135 </PROGRAMLISTING>
136
137 <para>Now, edit the <filename>~/.offlineimaprc</filename> file with
138 your favorite editor. All you have to do is specify a directory
139 for your folders to be in (on the <property>localfolders</property>
140 line), the host name of your IMAP server (on the
141 <property>remotehost</property> line), and your login name on
142 the remote (on the <property>remoteuser</property> line). That's
143 it!</para>
144
145 <para>To run &OfflineIMAP;, you just have to say
146 <command>offlineimap</command> -- it will fire up, ask you for
147 a login password if necessary, synchronize your folders, and exit.
148 See? You can just throw away the rest of this finely-crafted,
149 perfectly-honed manual! Of course, if you want to see how you can
150 make &OfflineIMAP; FIVE TIMES FASTER FOR JUST $19.95 (err, well,
151 $0), you have to read on!
152 </para>
153
154 </refsect1>
155
156 <refsect1>
157 <title>Installation</title>
158
159 <para>If you are reading this document via the "man" command, it is
160 likely
161 that you have no installation tasks to perform; your system
162 administrator has already installed it. If you need to install it
163 yourself, you have three options: a system-wide installation with
164 Debian, system-wide installation with other systems, and a single-user
165 installation. You can download the latest version of &OfflineIMAP; from
166 <ulink url="http://quux.org/devel/offlineimap/">the &OfflineIMAP;
167 website</ulink>.
168 </para>
169
170 <refsect2>
171 <title>Prerequisites</title>
172
173 <para>In order to use &OfflineIMAP;, you need to have these conditions
174 satisfied:
175 </para>
176
177 <itemizedlist>
178 <listitem>
179 <para>Your mail server must support IMAP. Most Internet Service
180 Providers
181 and corporate networks do, and most operating systems
182 have an IMAP
183 implementation readily available.
184 </para>
185 </listitem>
186 <listitem>
187 <para>
188 You must have Python version 2.2.1 or above installed.
189 If you are
190 running on Debian GNU/Linux, this requirement will automatically be
191 taken care of for you. If you do not have Python already, check with
192 your system administrator or operating system vendor; or, download it from
193 <ulink url="http://www.python.org/">the Python website</ulink>.
194 If you intend to use the Tk interface, you must have Tkinter
195 (python-tk) installed. If you intend to use the SSL interface, your
196 Python must have been built with SSL support.
197 </para>
198 </listitem>
199 <listitem>
200 <para>
201 Have a mail reader that supports the Maildir mailbox format. Most
202 modern mail readers have this support built-in, so you can choose from
203 a wide variety of mail servers. This format is also known as the
204 "qmail" format, so any mail reader compatible with it will work with
205 &OfflineIMAP;.
206 </itemizedlist>
207 </refsect2>
208
209 <refsect2>
210 <title>System-Wide Installation, Debian</title>
211 <para>
212 If you are tracking Debian unstable, you may install
213 &OfflineIMAP; by simply running the following command as root:
214 </para>
215 <para>
216 <command>apt-get install offlineimap</command>
217 </para>
218 <para>
219 If you are not tracking Debian unstable, download the Debian .deb
220 package from the <ulink url="http://quux.org/devel/offlineimap/">&OfflineIMAP; website</ulink>
221 and then run <command>dpkg -i</command> to install the downloaded
222 package. Then, skip to <xref linkend="configuration" endterm="configuration-title"> below. You will type <command>offlineimap</command> to
223 invoke the program.
224 </para>
225 </refsect2>
226
227 <refsect2>
228 <title>System-Wide Installation, Other</title>
229 <para>
230 Download the tar.gz version of the package from the
231 <ulink url="http://quux.org/devel/offlineimap/">website</ulink>.
232 Then run
233 these commands, making sure that you are the "root" user first:
234 </para>
235
236 <ProgramListing>tar -zxvf offlineimap_x.y.z.tar.gz
237 cd offlineimap-x.y.z
238 python2.2 setup.py install</ProgramListing>
239 <para>On some systems, you will need to use
240 <command>python</command> instead of <command>python2.2</command>.
241 Next, proceed to <xref linkend="configuration" endterm="configuration-title"> below. You will type <command>offlineimap</command> to
242 invoke the program.
243 </para>
244 </refsect2>
245
246 <refsect2>
247 <title>Single-Account Installation</title>
248 <para>
249 Download the tar.gz version of the package from the
250 <ulink url="http://quux.org/devel/offlineimap/">website</ulink>.
251 Then run these commands:
252 </para>
253
254 <ProgramListing>tar -zxvf offlineimap_x.y.z.tar.gz
255 cd offlineimap-x.y.z</ProgramListing>
256
257 <para>When you want to run &OfflineIMAP;, you will issue the
258 <command>cd</command> command as above and then type
259 <command>./offlineimap.py</command>; there is no installation
260 step necessary.
261 </para>
262 </refsect2>
263 </refsect1>
264
265 <refsect1 id="configuration">
266 <title id="configuration-title">Configruation</title>
267 <para>
268 &OfflineIMAP; is regulated by a configuration file that is normally
269 stored in <filename>~/.offlineimaprc</filename>. &OfflineIMAP;
270 ships with a file named <filename>offlineimap.conf</filename>
271 that you should copy to that location and then edit. This file is
272 vital to proper operation of the system; it sets everything you need
273 to run &OfflineIMAP;. Full documentation for the configuration file
274 is included within the sample file.
275 </para>
276 <para>
277 &OfflineIMAP; also ships a file named
278 <filename>offlineimap.conf.minimal</filename> that you can also try.
279 It's useful if you want to get started with
280 the most basic feature set, and you can read about other features
281 later with <filename>offlineimap.conf</filename>.
282 </para>
283 </refsect1>
284
285
286
287 <refsect1>
288 <title>See Also</title>
289 <para>This is also a test. Foo bar.</para>
290 </refsect1>
291 </refentry>
292 </reference>