Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 334 lines (296 sloc) 16.842 kb
83dfc24c » jgoerzen
2006-12-02 Add the FAQ
1 <!DOCTYPE html
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 <head>
6 <title>FrequentlyAskedQuestions - OfflineIMAP</title><link rel="start" href="/offlineimap/wiki" /><link rel="search" href="/offlineimap/search" /><link rel="help" href="/offlineimap/wiki/TracGuide" /><link rel="stylesheet" href="/static/css/trac.css" type="text/css" /><link rel="stylesheet" href="/static/css/wiki.css" type="text/css" /><link rel="icon" href="/offlineimap/chrome/common/trac.ico" type="image/x-icon" /><link rel="shortcut icon" href="/offlineimap/chrome/common/trac.ico" type="image/x-icon" /><link rel="alternate" href="/offlineimap/wiki/FrequentlyAskedQuestions?format=txt" title="Plain Text" type="text/x-trac-wiki" /><style type="text/css">
7 #adbar {
8 position: absolute;
9 top: 152px;
10 right: 10px;
11 width: 140px;
12 z-index: 1;
13 text-align: right;
14 }
15
16 /* For Mozilla and Safari */
17 *>#content {
18 padding: 0;
19 margin: 15px 140px 0 15px;
20 text-align: left;
21 min-height: 770px;
22 }
23 #header h1 { margin: 0 0 -4.5em; }
24
25 *>#jg-content { background: #fff; padding-left: 10px; }
26
27 /* For IE */
28 * html #content {
29 padding: 0;
30 margin: 15px 140px 0 15px;
31 text-align: left;
32 height: 770px;
33 }
34 * html #jg-content { background: #fff; padding-left: 10px; }
35 * html #header h1 {margin: 0 0 0; }
36
37 body { background: #404040; }
38
39 /* #dirlist td.change { white-space: normal; } */
40 /* #dirlist td.name { width: auto; } */
41
42 </style>
43 <script type="text/javascript" src="/static/js/trac.js"></script>
44 </head>
45 <body>
46
47
48 <div id="jg-content">
49
50
51 <div id="banner">
52
53 <div id="header"><h1><a href="http://software.complete.org/offlineimap/">OfflineIMAP</a> - FrequentlyAskedQuestions
54 </h1><br/></div>
55
56 <form id="search" action="/offlineimap/search" method="get">
57 <div>
58 <label for="proj-search">Search:</label>
59 <input type="text" id="proj-search" name="q" size="10" accesskey="f" value="" />
60 <input type="submit" value="Search" />
61 <input type="hidden" name="wiki" value="on" />
62 <input type="hidden" name="changeset" value="on" />
63 <input type="hidden" name="ticket" value="on" />
64 </div>
65 </form>
66
67
68
69 <div id="metanav" class="nav"><ul><li class="first"><a href="/offlineimap/login">Login</a></li><li><a href="/offlineimap/settings">Settings</a></li><li><a accesskey="6" href="/offlineimap/wiki/TracGuide">Help/Guide</a></li><li><a href="/offlineimap/about">About Trac</a></li><li class="last"><a href="/offlineimap/register">Register</a></li></ul></div>
70 </div>
71
72 <div id="mainnav" class="nav"><ul><li class="active first"><a accesskey="1" href="/offlineimap/wiki">Wiki</a></li><li><a accesskey="2" href="/offlineimap/timeline">Timeline</a></li><li><a accesskey="3" href="/offlineimap/roadmap">Roadmap</a></li><li><a href="/offlineimap/browser">Browse Source</a></li><li><a href="/offlineimap/report">View Tickets</a></li><li><a accesskey="4" href="/offlineimap/search">Search</a></li><li class="last"><a href="/offlineimap/downloads">Downloads</a></li></ul></div>
73 <div id="main">
74
75
76
77
78 <div id="ctxtnav" class="nav">
79 <h2>Wiki Navigation</h2>
80 <ul>
81 <li><a href="/offlineimap/wiki">Start Page</a></li>
82 <li><a href="/offlineimap/wiki/TitleIndex">Index by Title</a></li>
83 <li><a href="/offlineimap/wiki/RecentChanges">Index by Date</a></li>
84 <li class="last"><a href="/offlineimap/wiki/FrequentlyAskedQuestions?action=diff&amp;version=14">Last Change</a></li>
85 </ul>
86 <hr />
87 </div>
88
89 <div id="content" class="wiki">
90
91
92
93
94
95 <div class="wikipage">
96 <div id="searchable"><h1 id="OfflineIMAPFAQ">OfflineIMAP FAQ</h1>
97 <p>
98 Here are answers to some of the most frequently asked questions about OfflineIMAP.
99 </p>
100 <hr />
101 <p>
102 <ol><li><a href="#BasicQuestions">Basic Questions</a><ol><li><a href="#WheredoIgetOfflineIMAP">Where do I get OfflineIMAP?</a></li><li>
103 <a href="#Howfastisit">How fast is it?</a></li><li>
104 <a href="#WhatplatformsdoesOfflineIMAPsupport">What platforms does OfflineIMAP support?</a><ol><li><a href="#UseonWindows">Use on Windows</a></li></ol><li><a href="#DoesOfflineIMAPsupportmboxmhoranythingelseotherthanMaildir">Does OfflineIMAP support mbox, mh, or anything else other than Maildir?</a></li><li>
105 <a href="#HowdoIaddordeleteafolder">How do I add or delete a folder?</a></li><li>
106 <a href="#DoesOfflineIMAPsupportPOP">Does OfflineIMAP support POP?</a></li></ol><li><a href="#ConfigurationQuestions">Configuration Questions</a><ol><li><a href="#CanIsynchronizemultipleaccountswithOfflineIMAP">Can I synchronize multiple accounts with OfflineIMAP?</a></li><li>
107 <a href="#HowdoIspecifythenamesoffolders">How do I specify the names of folders?</a></li><li>
108 <a href="#HowdoIpreventcertainfoldersfrombeingsynced">How do I prevent certain folders from being synced?</a></li><li>
109 <a href="#Whatisthemailboxnamerecordermbnamesfor">What is the mailbox name recorder (mbnames) for?</a></li></ol><li><a href="#IMAPServerNotes">IMAP Server Notes</a><ol><li><a href="#MicrosoftExchange">Microsoft Exchange</a></li></ol><li><a href="#ClientNotes">Client Notes</a><ol><li><a href="#WhatclientsdoesOfflineIMAPworkwith">What clients does OfflineIMAP work with?</a></li><li>
110 <a href="#Evolution">Evolution</a></li><li>
111 <a href="#KMail">KMail</a></li><li>
112 <a href="#Mutt">Mutt</a><ol><li><a href="#DoIneedtousesetmaildir_trash">Do I need to use set maildir_trash?</a></li><li>
113 <a href="#HowdoIsetupmbnameswithmutt">How do I set up mbnames with mutt?</a></li></ol><li></li></ol><li><a href="#MiscellaneousQuestions">Miscellaneous Questions</a><ol><li><a href="#WhyareyourMaildirmessagefilenamessolong">Why are your Maildir message filenames so long?</a></li></ol></li></ol></li></ol>
114 </p>
115 <hr />
116 <h2 id="BasicQuestions">Basic Questions</h2>
117 <h3 id="WheredoIgetOfflineIMAP">Where do I get OfflineIMAP?</h3>
118 <p>
119 From its <a href="/offlineimap/downloads">downloads page</a>.
120 </p>
121 <h3 id="Howfastisit">How fast is it?</h3>
122 <p>
123 OfflineIMAP has a multithreaded sync, so it should have very nice performance.
124 </p>
125 <p>
126 OfflineIMAP versions 2.0 and above contain a multithreaded system. A good way to experiment is by setting maxsyncaccounts to 3 and maxconnections to 3 in each account clause.
127 </p>
128 <p>
129 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.
130 </p>
131 <p>
132 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.
133 </p>
134 <p>
135 An informal benchmark yields these results for my setup:
136 </p>
137 <ul><li>10 minutes with MacOS X Mail.app "manual cache"
138 </li><li>5 minutes with GNUS agent sync
139 </li><li>20 seconds with OfflineIMAP 1.x
140 </li><li>9 seconds with OfflineIMAP 2.x
141 </li><li>3 seconds with OfflineIMAP 3.x "cold start"
142 </li><li>2 seconds with OfflineIMAP 3.x "held connection"
143 </li></ul><h3 id="WhatplatformsdoesOfflineIMAPsupport">What platforms does OfflineIMAP support?</h3>
144 <p>
145 It should run on most platforms supported by Python, which are quite a few. I do not support Windows myself, but some have made it work there.
146 </p>
147 <h4 id="UseonWindows">Use on Windows</h4>
148 <p>
149 These answers have been reported by OfflineIMAP users. I do not run OfflineIMAP on Windows myself, so I can't directly address their accuracy.
150 </p>
151 <p>
152 The basic answer is that it's possible and doesn't require hacking OfflineIMAP source code. However, it's not necessarily trivial. The information below is based in instructions submitted by Chris Walker.
153 </p>
154 <p>
155 First, you must run OfflineIMAP in the <a class="ext-link" href="http://www.cygwin.com/"><span class="icon">Cygwin</span></a> environment. The Windows filesystem is not powerful enough to accomodate Maildir by itself.
156 </p>
157 <p>
158 Next, you'll need to mount your Maildir directory in a special way. There is information for doing that at <a class="ext-link" href="http://barnson.org/node/view/295"><span class="icon">http://barnson.org/node/view/295</span></a>. That site gives this example:
159 </p>
160 <pre class="wiki">mount -f -s -b -o managed "d:/tmp/mail" "/home/of/mail"
161 </pre><p>
162
163 That URL also has more details on making OfflineIMAP work with Windows.
164 </p>
165 <h3 id="DoesOfflineIMAPsupportmboxmhoranythingelseotherthanMaildir">Does OfflineIMAP support mbox, mh, or anything else other than Maildir?</h3>
166 <p>
167 Not directly. Maildir was the easiest to implement. I'm not planning to write mbox code for OfflineIMAP, though if someone sent me well-written mbox support and pledged to support it, I'd commit it to the tree.
168 </p>
169 <p>
170 However, OfflineIMAP can directly sync accounts on two different IMAP servers together. So you could install an IMAP server on your local machine that supports mbox, sync to it, and then instruct your mail readers to use the mboxes.
171 </p>
172 <p>
173 Or you could install whatever IMAP server you like on the local machine, and point your mail readers to that IMAP server on localhost.
174 </p>
175 <h3 id="HowdoIaddordeleteafolder">How do I add or delete a folder?</h3>
176 <p>
177 OfflineIMAP does not currently provide this feature. However, if you create a new folder on the remote server, OfflineIMAP will detect this and create the corresponding folder locally automatically.
178 </p>
179 <h3 id="DoesOfflineIMAPsupportPOP">Does OfflineIMAP support POP?</h3>
180 <p>
181 No. POP is not robust enough to do a completely reliable multi-machine sync like OfflineIMAP can do.
182 </p>
183 <p>
184 OfflineIMAP will never support POP.
185 </p>
186 <h2 id="ConfigurationQuestions">Configuration Questions</h2>
187 <h3 id="CanIsynchronizemultipleaccountswithOfflineIMAP">Can I synchronize multiple accounts with OfflineIMAP?</h3>
188 <p>
189 Of course!
190 </p>
191 <p>
192 Just name them all in the accounts line in the general section of the configuration file, and add a per-account section for each one.
193 </p>
194 <p>
195 You can also optionally use the -a option when you run OfflineIMAP to request that it only operate upon a subset of the accounts for a particular run.
196 </p>
197 <h3 id="HowdoIspecifythenamesoffolders">How do I specify the names of folders?</h3>
198 <p>
199 You do not need to. OfflineIMAP is smart enough to automatically figure out what folders are present on the IMAP server and synchronize them. You can use the folderfilter and nametrans configuration file options to request only certain folders and rename them as they come in if you like.
200 </p>
201 <h3 id="HowdoIpreventcertainfoldersfrombeingsynced">How do I prevent certain folders from being synced?</h3>
202 <p>
203 Use the folderfilter option.
204 </p>
205 <h3 id="Whatisthemailboxnamerecordermbnamesfor">What is the mailbox name recorder (mbnames) for?</h3>
206 <p>
207 Some mail readers, such as mutt, are not capable of automatically determining the names of your mailboxes. OfflineIMAP can help these programs by writing the names of the folders in a format you specify. See the example offlineimap.conf for details.
208 </p>
209 <h2 id="IMAPServerNotes">IMAP Server Notes</h2>
210 <p>
211 In general, OfflineIMAP works with any IMAP server that provides compatibility with the IMAP RFCs. Some servers provide imperfect compatibility that may be good enough for general clients. OfflineIMAP needs more features, specifically support for UIDs, in order to do its job accurately and completely.
212 </p>
213 <h3 id="MicrosoftExchange">Microsoft Exchange</h3>
214 <p>
215 Several users have reported problems with Microsoft Exchange servers in conjunction with OfflineIMAP. This generally seems to be related to the Exchange servers not properly following the IMAP standards.
216 </p>
217 <p>
218 Mark Biggers has posted some <a class="ext-link" href="http://lists.complete.org/offlineimap@complete.org/2005/09/msg00011.html.gz"><span class="icon">information</span></a> to the OfflineIMAP mailing list about how he made it work.
219 </p>
220 <p>
221 Other users have indicated that older (5.5) releases of Exchange are so bad that they will likely not work at all.
222 </p>
223 <p>
224 I do not have access to Exchange servers for testing, so any problems with it, if they can even be solved at all, will require help from OfflineIMAP users to find and fix.
225 </p>
226 <h2 id="ClientNotes">Client Notes</h2>
227 <h3 id="WhatclientsdoesOfflineIMAPworkwith">What clients does OfflineIMAP work with?</h3>
228 <p>
229 Any client that supports Maildir. Popular ones include mutt, Evolution, Thunderbird, and KMail.
230 </p>
231 <p>
232 With OfflineIMAP's IMAP-to-IMAP syncing, this can be even wider; see the next question.
233 </p>
234 <h3 id="Evolution">Evolution</h3>
235 <p>
236 OfflineIMAP can work with Evolution. To do so, first configure your OfflineIMAP account to have <tt>sep = /</tt> in its configuration. Then, configure Evolution with the "Maildir-format mail directories" server type. For the path, you will need to specify the name of the top-level folder <i>inside</i> your OfflineIMAP storage location. You're now set!
237 </p>
238 <h3 id="KMail">KMail</h3>
239 <p>
240 At this time, I believe that OfflineIMAP with Maildirs is not compatible with KMail. KMail cannot work in any mode other than to move all messages out of all folders immediately, which (besides being annoying and fundamentally broken) is incompatible with OfflineIMAP.
241 </p>
242 <p>
243 However, I have made KMail version 3 work well with OfflineIMAP by installing an IMAP server on my local machine, having OfflineIMAP sync to that, and pointing KMail at the same server.
244 </p>
245 <h3 id="Mutt">Mutt</h3>
246 <h4 id="DoIneedtousesetmaildir_trash">Do I need to use set maildir_trash?</h4>
247 <p>
248 Other IMAP sync programs require you to do this. OfflineIMAP does not. You'll get the best results without it, in fact, though turning it on won't hurt anything.
249 </p>
250 <h4 id="HowdoIsetupmbnameswithmutt">How do I set up mbnames with mutt?</h4>
251 <p>
252 The example offlineimap.conf file has this example. In your offlineimap.conf, you'll list this:
253 </p>
254 <pre class="wiki">[mbnames]
255 enabled = yes
256 filename = ~/Mutt/muttrc.mailboxes
257 header = "mailboxes "
258 peritem = "+%(accountname)s/%(foldername)s"
259 sep = " "
260 footer = "\n"
261 </pre><p>
262 Then in your .muttrc:
263 </p>
264 <pre class="wiki">source ~/Mutt/muttrc.mailboxes
265 </pre><p>
266 You might also want to set:
267 </p>
268 <pre class="wiki">set mbox_type=Maildir
269 set folder=$HOME/Maildirpath
270 </pre><p>
271 The OfflineIMAP manual has a more detailed example for doing this for multiple accounts.
272 </p>
273 <h2 id="MiscellaneousQuestions">Miscellaneous Questions</h2>
274 <h3 id="WhyareyourMaildirmessagefilenamessolong">Why are your Maildir message filenames so long?</h3>
275 <p>
276 OfflineIMAP has two relevant principles: 1) never modifying your 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 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.
277 </p>
278 <p>
279 So, OfflineIMAP must store both a UID folder ID. The folder ID is necessary so OfflineIMAP can detect a message moved to a different folder. OfflineIMAP stores the UID (U= number) and an md5sum of the foldername (FMD5= number) to facilitate this.
280 </p>
281 </div>
282 </div>
283
284
285 <script type="text/javascript">
286 addHeadingLinks(document.getElementById("searchable"), "Link to this section");
287 </script>
288
289
290 </div>
291
292 <script type="text/javascript">searchHighlight()</script>
293 <div id="altlinks"><h3>Download in other formats:</h3><ul><li class="first last"><a href="/offlineimap/wiki/FrequentlyAskedQuestions?format=txt">Plain Text</a></li></ul></div>
294
295 </div>
296
297 <div id="footer">
298 <hr />
299 <a id="tracpowered" href="http://trac.edgewall.org/"><img src="/static/trac_logo_mini.png" height="30" width="107"
300 alt="Trac Powered"/></a>
301 <p class="left">
302 Powered by <a href="/offlineimap/about"><strong>Trac 0.10.2</strong></a><br />
303 By <a href="http://www.edgewall.org/">Edgewall Software</a>.
304 </p>
305 <p class="right">
306 A <a href="http://www.complete.org/">Complete.Org</a> site
307 </p>
308 </div>
309
310 </div> <!-- jg-content -->
311 <div id="adbar">
312 <script type="text/javascript"><!--
313 google_ad_client = "pub-2027358522178233";
314 google_ad_width = 120;
315 google_ad_height = 600;
316 google_ad_format = "120x600_as";
317 google_ad_type = "text";
318 //2006-11-29: Software
319 google_ad_channel = "8038008654";
320 google_color_border = "940F04";
321 google_color_bg = "FFFFFF";
322 google_color_link = "CC0000";
323 google_color_text = "000000";
324 google_color_url = "940F04";
325 //--></script>
326 <script type="text/javascript"
327 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
328 </script>
329 </div>
330
331
332
333 </body>
334 </html>
335
Something went wrong with that request. Please try again.