]> code.delx.au - offlineimap/blob - offlineimap.conf
doc target no longer depends on faq
[offlineimap] / offlineimap.conf
1 # Sample configuration file
2 # Copyright (C) 2002-2005 John Goerzen
3 # <jgoerzen@complete.org>
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 # Looking for a quick start? Take a look at offlineimap.conf.minimal.
20
21
22 ##################################################
23 # General definitions
24 ##################################################
25
26 [general]
27
28 # This specifies where offlineimap is to store its metadata.
29 # This directory will be created if it does not already exist.
30
31 metadata = ~/.offlineimap
32
33 # This variable specifies which accounts are defined. Separate them
34 # with commas. Account names should be alphanumeric only.
35 # You will need to specify one section per account below. You may
36 # not use "general" for an account name.
37 #
38
39 accounts = Test
40
41 # Offlineimap can synchronize more the one account at a time. If you
42 # want to enable this feature, set the below value to something
43 # greater than 1. To force it to synchronize only one account at a
44 # time, set it to 1.
45 #
46
47 maxsyncaccounts = 1
48
49 # You can specify one or more user interface modules for OfflineIMAP
50 # to use. OfflineIMAP will try the first in the list, and if it
51 # fails, the second, and so forth.
52 #
53 # The pre-defined options are:
54 # Tk.Blinkenlights -- A graphical interface, shows LEDs and a single log
55 # Tk.VerboseUI -- A graphical interface, shows logs per thread
56 # Curses.Blinkenlights -- A text-based (terminal) interface similar to
57 # Tk.Blinkenlights
58 # TTY.TTYUI -- a text-based (terminal) interface
59 # Noninteractive.Basic -- Noninteractive interface suitable for cronning
60 # Noninteractive.Quiet -- Noninteractive interface, generates no output
61 # except for errors.
62 #
63 # You can override this with a command-line option -u.
64
65 ui = Tk.Blinkenlights, Tk.VerboseUI, Curses.Blinkenlights, TTY.TTYUI,
66 Noninteractive.Basic, Noninteractive.Quiet
67
68 # If you try to synchronize messages to a read-only folder,
69 # OfflineIMAP will generate a warning. If you want to suppress these
70 # warnings, set ignore-readonly to yes. Read-only IMAP folders allow
71 # reading but not modification, so if you try to change messages in
72 # the local copy of such a folder, the IMAP server will prevent
73 # OfflineIMAP from propogating those changes to the IMAP server.
74
75 ignore-readonly = no
76
77 ########## Advanced settings
78
79 # You can give a Python source filename here and all config file
80 # python snippets will be evaluated in the context of that file.
81 # This allows you to e.g. define helper functions in the Python
82 # source file and call them from this config file. You can find
83 # an example of this in the manual.
84 #
85 # pythonfile = ~/.offlineimap.py
86 #
87
88 ##################################################
89 # Mailbox name recorder
90 ##################################################
91
92 [mbnames]
93
94 # offlineimap can record your mailbox names in a format you specify.
95 # You can define the header, each mailbox item, the separator,
96 # and the footer. Here is an example for Mutt.
97 # If enabled is yes, all six setting must be specified, even if they
98 # are just the empty string "".
99 #
100 # The header, peritem, sep, and footer are all Python expressions passed
101 # through eval, so you can (and must) use Python quoting.
102
103 enabled = no
104 filename = ~/Mutt/muttrc.mailboxes
105 header = "mailboxes "
106 peritem = "+%(accountname)s/%(foldername)s"
107 sep = " "
108 footer = "\n"
109
110 # You can also specify a folderfilter. It will apply to the
111 # *translated* folder name here, and it takes TWO arguments:
112 # accountname and foldername. In all other ways, it will
113 # behave identically to the folderfilter for accounts. Please see
114 # that section for more information and examples.
115 #
116 # Note that this filter can be used only to further restrict mbnames
117 # to a subset of folders that pass the account's folderfilter.
118
119 ##################################################
120 # Blinkenlights configuration
121 ##################################################
122
123 [ui.Tk.Blinkenlights]
124
125 # Specifies the default number of lines in the log.
126
127 loglines = 5
128
129 # Specifies how many lines are in the scrollback log buffer.
130
131 bufferlines = 500
132
133 # If true, says that the log should be enabled by default.
134 # Otherwise, you have to click "Show Log" to enable the log.
135
136 showlog = false
137
138 # Sets the font information.
139
140 fontfamily = Helvetica
141 fontsize = 8
142
143 ##################################################
144 # Accounts
145 ##################################################
146
147 # This is an account definition clause. You'll have one of these
148 # for each account listed in general/accounts above.
149
150 [Account Test]
151 ########## Basic settings
152
153 # These settings specify the two folders that you will be syncing.
154 # You'll need to have a "Repository ..." section for each one.
155
156 localrepository = LocalExample
157 remoterepository = RemoteExample
158
159 ########## Advanced settings
160
161 # You can have offlineimap continue running indefinately, automatically
162 # syncing your mail periodically. If you want that, specify how
163 # frequently to do that (in minutes) here. You can also specify
164 # fractional minutes (ie, 3.25).
165
166 # autorefresh = 5
167
168 [Repository LocalExample]
169
170 # This is one of the two repositories that you'll work with given the
171 # above example. Each repository requires a "type" declaration.
172 #
173 # The types supported are Maildir and IMAP.
174 #
175
176 type = Maildir
177
178 # Specify local repository. Your IMAP folders will be synchronized
179 # to maildirs created under this path. OfflineIMAP will create the
180 # maildirs for you as needed.
181
182 localfolders = ~/Test
183
184 # You can specify the "path separator character" used for your Maildir
185 # folders. This is inserted in-between the components of the tree.
186 # It defaults to ".". If you want your Maildir folders to be nested,
187 # set it to "/".
188
189 sep = .
190
191 # Some users on *nix platforms may not want the atime (last access
192 # time) to be modified by OfflineIMAP. In these cases, they would
193 # want to set restoreatime to yes. OfflineIMAP will make an effort
194 # to not touch the atime if you do that.
195 #
196 # In most cases, the default of no should be sufficient.
197
198 restoreatime = no
199
200 [Repository RemoteExample]
201
202 # And this is the remote repository. For now, we only support IMAP here.
203
204 type = IMAP
205
206 # Specify the remote hostname.
207 remotehost = examplehost
208
209 # Whether or not to use SSL.
210 ssl = yes
211
212 # Specify the port. If not specified, use a default port.
213 # remoteport = 993
214
215 # Specify the remote user name.
216 remoteuser = username
217
218 # There are four ways to specify the password for the remote IMAP
219 # server:
220 #
221 # 1. No password at all specified in the config file. You will
222 # be prompted for the password when OfflineIMAP starts.
223 #
224 # 2. The remote password stored in this file with the remotepass
225 # option. Example:
226 #
227 # remotepass = mypassword
228 #
229 # 3. The remote password stored as a single line in an external
230 # file, which is referenced by the remotefile option. Example:
231 #
232 # remotepassfile = ~/Password.IMAP.Account1
233 #
234 # 4. With a preauth tunnel. With this method, you invoke an external
235 # program that is guaranteed *NOT* to ask for a password, but rather
236 # to read from stdin and write to stdout an IMAP procotol stream
237 # that begins life in the PREAUTH state. When you use a tunnel,
238 # you do NOT specify a user or password (if you do, they'll be
239 # ignored.) Instead, you specify a preauthtunnel, as this
240 # example illustrates for Courier IMAP on Debian:
241 #
242 # preauthtunnel = ssh -q imaphost '/usr/bin/imapd ./Maildir'
243 #
244
245 ########## Advanced settings
246
247 # Some IMAP servers need a "reference" which often refers to the
248 # "folder root". This is most commonly needed with UW IMAP, where
249 # you might need to specify the directory in which your mail is
250 # stored. Most users will not need this.
251 #
252 # reference = Mail
253
254 # OfflineIMAP can use multiple connections to the server in order
255 # to perform multiple synchronization actions simultaneously.
256 # This may place a higher burden on the server. In most cases,
257 # setting this value to 2 or 3 will speed up the sync, but in some
258 # cases, it may slow things down. The safe answer is 1. You should
259 # probably never set it to a value more than 5.
260
261 maxconnections = 1
262
263 # OfflineIMAP normally closes IMAP server connections between refreshes if
264 # the global option autorefresh is specified. If you wish it to keep the
265 # connection open, set this to true. If not specified, the default is
266 # false. Keeping the connection open means a faster sync start the
267 # next time and may use fewer server resources on connection, but uses
268 # more server memory. This setting has no effect if autorefresh is not set.
269
270 holdconnectionopen = no
271
272 # If you want to have "keepalives" sent while waiting between syncs,
273 # specify the amount of time IN SECONDS between keepalives here. Note that
274 # sometimes more than this amount of time might pass, so don't make it
275 # tight. This setting has no effect if autorefresh and holdconnectionopen
276 # are not both set.
277
278 # keepalive = 60
279
280 # Normally, OfflineIMAP will expunge deleted messages from the server.
281 # You can disable that if you wish. This means that OfflineIMAP will
282 # mark them deleted on the server, but not actually delete them.
283 # You must use some other IMAP client to delete them if you use this
284 # setting; otherwise, the messgaes will just pile up there forever.
285 # Therefore, this setting is definately NOT recommended.
286 #
287 # expunge = no
288 # You can specify a folder translator. This must be a eval-able
289 # Python expression that takes a foldername arg and returns the new
290 # value. I suggest a lambda. This example below will remove "INBOX." from
291 # the leading edge of folders (great for Courier IMAP users)
292 #
293 # WARNING: you MUST construct this such that it NEVER returns
294 # the same value for two folders, UNLESS the second values are
295 # filtered out by folderfilter below. Failure to follow this rule
296 # will result in undefined behavior
297 #
298 # nametrans = lambda foldername: re.sub('^INBOX\.', '', foldername)
299
300 # Using Courier remotely and want to duplicate its mailbox naming
301 # locally? Try this:
302 #
303 # nametrans = lambda foldername: re.sub('^INBOX\.*', '.', foldername)
304
305 # You can specify which folders to sync. You can do it several ways.
306 # I'll provide some examples. The folderfilter operates on the
307 # *UNTRANSLATED* name, if you specify nametrans. It should return
308 # true if the folder is to be included; false otherwise.
309 #
310 # Example 1: synchronizing only INBOX and Sent.
311 #
312 # folderfilter = lambda foldername: foldername in ['INBOX', 'Sent']
313 #
314 # Example 2: synchronizing everything except Trash.
315 #
316 # folderfilter = lambda foldername: foldername not in ['Trash']
317 #
318 # Example 3: Using a regular expression to exclude Trash and all folders
319 # containing the characters "Del".
320 #
321 # folderfilter = lambda foldername: not re.search('(^Trash$|Del)', foldername)
322 #
323 # If folderfilter is not specified, ALL remote folders will be
324 # synchronized.
325 #
326 # You can span multiple lines by indenting the others. (Use backslashes
327 # at the end when required by Python syntax) For instance:
328 #
329 # folderfilter = lambda foldername: foldername in
330 # ['INBOX', 'Sent Mail', 'Deleted Items',
331 # 'Received']
332 #
333 # FYI, you could also include every folder with:
334 #
335 # folderfilter = lambda foldername: 1
336 #
337 # And exclude every folder with:
338 #
339 # folderfilter = lambda foldername: 0
340
341 # You can specify folderincludes to include additional folders.
342 # It should return a Python list. This might be used to include a
343 # folder that was excluded by your folderfilter rule, to include a
344 # folder that your server does not specify with its LIST option, or
345 # to include a folder that is outside your basic reference. Some examples:
346 #
347 # To include debian.user and debian.personal:
348 #
349 # folderincludes = ['debian.user', 'debian.personal']
350 #
351 # To include your INBOX (UW IMAPd users will find this useful if they
352 # specify a reference):
353 #
354 # folderincludes = ['INBOX']
355 #
356 # To specify a long list:
357 #
358 # folderincludes = ['box1', 'box2', 'box3', 'box4',
359 # 'box5', 'box6']
360
361 # You can specify foldersort to determine how folders are sorted.
362 # This affects order of synchronization and mbnames. The expression
363 # should return -1, 0, or 1, as the default Python cmp() does. The
364 # two arguments, x and y, are strings representing the names of the folders
365 # to be sorted. The sorting is applied *AFTER* nametrans, if any.
366 #
367 # To reverse the sort:
368 #
369 # foldersort = lambda x, y: -cmp(x, y)
370