2012-02-04 20:35:31 +01:00
|
|
|
# Offlineimap sample configuration file
|
2012-02-13 16:07:33 +01:00
|
|
|
|
|
|
|
# This file documents *all* possible options and can be quite scary.
|
2003-01-07 04:30:37 +01:00
|
|
|
# Looking for a quick start? Take a look at offlineimap.conf.minimal.
|
2015-03-17 14:38:01 +01:00
|
|
|
# More details can be found at http://offlineimap.org .
|
2003-01-07 04:30:37 +01:00
|
|
|
|
2015-03-10 14:55:54 +01:00
|
|
|
##################################################
|
|
|
|
# Overview
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
# The default configuration file is "~/.offlineimaprc".
|
|
|
|
#
|
|
|
|
# OfflineIMAP ships with a file named "offlineimap.conf" that you should copy to
|
|
|
|
# that location and then edit.
|
|
|
|
#
|
|
|
|
# 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 "offlineimap.conf".
|
|
|
|
#
|
|
|
|
# If you want to be XDG-compatible, you can put your configuration file into
|
|
|
|
# "$XDG_CONFIG_HOME/offlineimap/config".
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# General definitions
|
|
|
|
##################################################
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# NOTE 1: Settings generally support python interpolation. This means
|
2012-02-13 16:07:33 +01:00
|
|
|
# values can contain python format strings which refer to other values
|
|
|
|
# in the same section, or values in a special DEFAULT section. This
|
|
|
|
# allows you for example to use common settings for multiple accounts:
|
2011-08-29 12:03:26 +02:00
|
|
|
#
|
|
|
|
# [Repository Gmail1]
|
|
|
|
# trashfolder: %(gmailtrashfolder)s
|
|
|
|
#
|
|
|
|
# [Repository Gmail2]
|
|
|
|
# trashfolder: %(gmailtrashfolder)s
|
|
|
|
#
|
|
|
|
# [DEFAULT]
|
2013-04-11 20:15:14 +02:00
|
|
|
# gmailtrashfolder = [Gmail]/Papierkorb
|
2011-08-29 12:03:26 +02:00
|
|
|
#
|
2013-04-11 20:15:14 +02:00
|
|
|
# would set the trashfolder setting for your German Gmail accounts.
|
2011-08-29 12:03:26 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# NOTE 2: Above feature implies that any '%' needs to be encoded as '%%'
|
2003-01-07 04:30:37 +01:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# NOTE 3: Any variable that is subject to the environment variables
|
2014-11-02 09:49:26 +01:00
|
|
|
# ($NAME) and tilde (~username/~) expansions will receive tilde
|
2015-01-14 17:12:08 +01:00
|
|
|
# expansion first and only after the environment variable will be
|
|
|
|
# expanded in the resulting string. This behaviour is intentional
|
2014-11-02 09:49:26 +01:00
|
|
|
# as it coincides with typical shell expansion strategy.
|
|
|
|
|
2015-03-19 16:59:46 +01:00
|
|
|
# NOTE 4: multiple same-named sections.
|
|
|
|
# The library used to parse the configuration file has known issue when multiple
|
|
|
|
# sections have the same name. In such case, only the last section is considered.
|
|
|
|
# It is strongly discouraged to have multiple sections with the same name.
|
|
|
|
# See https://github.com/OfflineIMAP/offlineimap/issues/143 for more details.
|
2015-01-14 17:12:08 +01:00
|
|
|
|
2002-06-20 09:40:29 +02:00
|
|
|
[general]
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This specifies where OfflineIMAP is to store its metadata.
|
2002-06-20 09:40:29 +02:00
|
|
|
# This directory will be created if it does not already exist.
|
2014-11-02 09:49:26 +01:00
|
|
|
#
|
|
|
|
# Tilde and environment variable expansions will be performed.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2012-02-04 20:35:31 +01:00
|
|
|
#metadata = ~/.offlineimap
|
2002-06-20 09:40:29 +02:00
|
|
|
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [general] section.
|
|
|
|
#
|
|
|
|
# This variable specifies which accounts are defined. Separate them with commas.
|
|
|
|
# Account names should be alphanumeric only. You will need to specify one
|
|
|
|
# section per account below. You may not use "general" for an account name.
|
|
|
|
#
|
|
|
|
# Always use ASCII characters only.
|
|
|
|
#
|
2002-06-20 09:40:29 +02:00
|
|
|
accounts = Test
|
|
|
|
|
2002-07-03 13:01:23 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [general] section.
|
|
|
|
#
|
|
|
|
# Offlineimap can synchronize more than one account at a time. If you want to
|
|
|
|
# enable this feature, set the below value to something greater than 1. To
|
|
|
|
# force it to synchronize only one account at a time, set it to 1.
|
|
|
|
#
|
|
|
|
# NOTE: if you are using autorefresh and have more than one account, you must
|
|
|
|
# set this number to be >= to the number of accounts you have; since any given
|
|
|
|
# sync run never "finishes" due to a timer, you will never sync your additional
|
|
|
|
# accounts if this is 1.
|
|
|
|
#
|
2012-02-04 20:35:31 +01:00
|
|
|
#maxsyncaccounts = 1
|
2002-07-03 13:01:23 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [general] section.
|
|
|
|
#
|
|
|
|
# You can specify one or more user interface. OfflineIMAP will try the first in
|
|
|
|
# the list, and if it fails, the second, and so forth.
|
2002-07-12 03:58:51 +02:00
|
|
|
#
|
|
|
|
# The pre-defined options are:
|
2011-03-06 11:04:46 +01:00
|
|
|
# Blinkenlights -- A fancy (terminal) interface
|
|
|
|
# TTYUI -- a text-based (terminal) interface
|
|
|
|
# Basic -- Noninteractive interface suitable for cron'ing
|
|
|
|
# Quiet -- Noninteractive interface, generates no output
|
|
|
|
# except for errors.
|
|
|
|
# MachineUI -- Interactive interface suitable for machine
|
|
|
|
# parsing.
|
2002-07-12 03:58:51 +02:00
|
|
|
#
|
2015-03-10 14:55:54 +01:00
|
|
|
# See also offlineimapui(7)
|
|
|
|
#
|
2002-07-12 03:58:51 +02:00
|
|
|
# You can override this with a command-line option -u.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2012-02-04 20:35:31 +01:00
|
|
|
#ui = basic
|
2002-07-12 03:58:51 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [general] section.
|
|
|
|
#
|
2011-05-01 20:18:29 +02:00
|
|
|
# If you try to synchronize messages to a folder which the IMAP server
|
|
|
|
# considers read-only, OfflineIMAP will generate a warning. If you want
|
|
|
|
# to suppress these warnings, set ignore-readonly to yes. Read-only
|
|
|
|
# IMAP folders allow reading but not modification, so if you try to
|
|
|
|
# change messages in the local copy of such a folder, the IMAP server
|
|
|
|
# will prevent OfflineIMAP from propagating those changes to the IMAP
|
2015-01-14 17:12:08 +01:00
|
|
|
# server. Note that ignore-readonly is UNRELATED to the "readonly"
|
2011-05-01 20:18:29 +02:00
|
|
|
# setting which prevents a repository from being modified at all.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2012-02-04 20:35:31 +01:00
|
|
|
#ignore-readonly = no
|
2002-07-12 03:58:51 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
2002-08-09 23:10:38 +02:00
|
|
|
########## Advanced settings
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [general] section.
|
|
|
|
#
|
2002-08-09 23:10:38 +02:00
|
|
|
# You can give a Python source filename here and all config file
|
|
|
|
# python snippets will be evaluated in the context of that file.
|
|
|
|
# This allows you to e.g. define helper functions in the Python
|
2002-08-09 23:25:28 +02:00
|
|
|
# source file and call them from this config file. You can find
|
|
|
|
# an example of this in the manual.
|
2002-08-09 23:10:38 +02:00
|
|
|
#
|
2014-11-02 09:49:26 +01:00
|
|
|
# Tilde and environment variable expansions will be performed.
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#pythonfile = ~/.offlineimap.py
|
|
|
|
|
2002-08-09 23:10:38 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option is in the [general] section.
|
|
|
|
#
|
|
|
|
# By default, OfflineIMAP will not exit due to a network error until the
|
|
|
|
# operating system returns an error code. Operating systems can sometimes take
|
|
|
|
# forever to notice this. Here you can activate a timeout on the socket. This
|
|
|
|
# timeout applies to individual socket reads and writes, not to an overall sync
|
|
|
|
# operation. You could perfectly well have a 30s timeout here and your sync
|
|
|
|
# still take minutes.
|
2007-07-06 18:37:58 +02:00
|
|
|
#
|
|
|
|
# Values in the 30-120 second range are reasonable.
|
|
|
|
#
|
|
|
|
# The default is to have no timeout beyond the OS. Times are given in seconds.
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#socktimeout = 60
|
|
|
|
|
2007-07-06 18:37:58 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [general] section.
|
|
|
|
#
|
2008-08-02 21:55:08 +02:00
|
|
|
# By default, OfflineIMAP will use fsync() to force data out to disk at
|
2015-01-14 17:12:08 +01:00
|
|
|
# opportune times to ensure consistency. This can, however, reduce performance.
|
|
|
|
# Users where /home is on SSD (Flash) may also wish to reduce write cycles.
|
|
|
|
# Therefore, you can disable OfflineIMAP's use of fsync(). Doing so will come
|
|
|
|
# at the expense of greater risk of message duplication in the event of a system
|
|
|
|
# crash or power loss. Default is true. Set it to false to disable fsync.
|
2008-08-02 21:55:08 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#fsync = true
|
|
|
|
|
2008-08-02 21:55:08 +02:00
|
|
|
|
2002-06-21 08:51:21 +02:00
|
|
|
##################################################
|
|
|
|
# Mailbox name recorder
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
[mbnames]
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# OfflineIMAP can record your mailbox names in a format you specify.
|
2002-06-21 08:51:21 +02:00
|
|
|
# You can define the header, each mailbox item, the separator,
|
|
|
|
# and the footer. Here is an example for Mutt.
|
|
|
|
# If enabled is yes, all six setting must be specified, even if they
|
|
|
|
# are just the empty string "".
|
|
|
|
#
|
|
|
|
# The header, peritem, sep, and footer are all Python expressions passed
|
|
|
|
# through eval, so you can (and must) use Python quoting.
|
2013-08-27 16:11:57 +02:00
|
|
|
#
|
2015-03-22 19:34:24 +01:00
|
|
|
# The incremental setting controls whether the file is written after each
|
|
|
|
# account completes or once all synced accounts are complete. This is usefull if
|
|
|
|
# an account is sightly slower than the other. It allows keeping the previous
|
|
|
|
# file rather than having it partially written.
|
|
|
|
# This works best with "no" if in one-shot mode started by cron or systemd
|
|
|
|
# timers. Default: no.
|
|
|
|
#
|
2013-08-27 16:11:57 +02:00
|
|
|
# The following hash key are available to the expansion for 'peritem':
|
|
|
|
# - accountname: the name of the corresponding account;
|
|
|
|
# - foldername: the name of the folder;
|
|
|
|
# - localfolders: path to the local directory hosting all Maildir
|
|
|
|
# folders for the account.
|
2014-11-02 09:49:26 +01:00
|
|
|
#
|
|
|
|
# Tilde and environment variable expansions will be performed
|
|
|
|
# for "filename" knob.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
|
|
|
#enabled = no
|
|
|
|
#filename = ~/Mutt/muttrc.mailboxes
|
|
|
|
#header = "mailboxes "
|
|
|
|
#peritem = "+%(accountname)s/%(foldername)s"
|
|
|
|
#sep = " "
|
|
|
|
#footer = "\n"
|
2015-03-22 19:34:24 +01:00
|
|
|
#incremental = no
|
2002-06-21 08:51:21 +02:00
|
|
|
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [mbnames] section.
|
2002-10-01 00:09:27 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# You can also specify a folderfilter. It will apply to the *translated* folder
|
|
|
|
# name here, and it takes TWO arguments: accountname and foldername. In all
|
|
|
|
# other ways, it will behave identically to the folderfilter for accounts.
|
|
|
|
# Please see the folderfilter option for more information and examples.
|
2013-05-19 12:13:57 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# This filter can be used only to further restrict mbnames to a subset of
|
|
|
|
# folders that pass the account's folderfilter.
|
2013-05-19 12:13:57 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# You can customize the order in which mailbox names are listed in the generated
|
|
|
|
# file by specifying a sort_keyfunc, which takes a single dict argument
|
|
|
|
# containing keys 'accountname' and 'foldername'. This function will be called
|
|
|
|
# once for each mailbox, and should return a suitable sort key that defines this
|
|
|
|
# mailbox' position in the custom ordering.
|
2013-05-19 12:13:57 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# This is useful with e.g. Mutt-sidebar, which uses the mailbox order from the
|
|
|
|
# generated file when listing mailboxes in the sidebar.
|
2013-05-19 12:13:57 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# Default setting is:
|
|
|
|
#sort_keyfunc = lambda d: (d['accountname'], d['foldername'])
|
2002-10-01 00:09:27 +02:00
|
|
|
|
2006-12-11 06:12:00 +01:00
|
|
|
|
2002-06-21 08:51:21 +02:00
|
|
|
##################################################
|
|
|
|
# Accounts
|
|
|
|
##################################################
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This is an account definition clause. You'll have one of these for each
|
|
|
|
# account listed in the "accounts" option in [general] section (above).
|
2002-06-20 09:40:29 +02:00
|
|
|
|
2003-04-18 04:18:34 +02:00
|
|
|
[Account Test]
|
2002-07-09 04:32:35 +02:00
|
|
|
|
2003-04-18 04:18:34 +02:00
|
|
|
# These settings specify the two folders that you will be syncing.
|
|
|
|
# You'll need to have a "Repository ..." section for each one.
|
|
|
|
|
|
|
|
localrepository = LocalExample
|
|
|
|
remoterepository = RemoteExample
|
|
|
|
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
########## Advanced settings
|
2003-04-18 04:18:34 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
|
|
|
# You can have OfflineIMAP continue running indefinitely, automatically syncing
|
|
|
|
# your mail periodically. If you want that, specify how frequently to do that
|
|
|
|
# (in minutes) here. Fractional minutes (ie, 3.25) is allowed.
|
|
|
|
#
|
|
|
|
#autorefresh = 5
|
2003-04-18 04:18:34 +02:00
|
|
|
|
Daniel Jacobowitz patches
fixes deb#433732
Date: Sun, 30 Sep 2007 13:54:56 -0400
From: Daniel Jacobowitz <drow@false.org>
To: offlineimap@complete.org
Subject: Assorted patches
Here's the result of a lazy Sunday hacking on offlineimap. Sorry for
not breaking this into multiple patches. They're mostly logically
independent so just ask if that would make a difference.
First, a new -q (quick) option. The quick option means to only update
folders that seem to have had significant changes. For Maildir, any
change to any message UID or flags is significant, because checking
the flags doesn't add a significant cost. For IMAP, only a change to
the total number of messages or a change in the UID of the most recent
message is significant. This should catch everything except for
flags changes.
The difference in bandwidth is astonishing: a quick sync takes 80K
instead of 5.3MB, and 28 seconds instead of 90.
There's a configuration variable that lets you say every tenth sync
should update flags, but let all the intervening ones be lighter.
Second, a fix to the UID validity problems many people have been
reporting with Courier. As discussed in Debian bug #433732, I changed
the UID validity check to use SELECT unless the server complains that
the folder is read-only. This avoids the Courier bug (see the Debian
log for more details). This won't fix existing validity errors, you
need to remove the local status and validity files by hand and resync.
Third, some speedups in Maildir checking. It's still pretty slow
due to a combination of poor performance in os.listdir (never reads
more than 4K of directory entries at a time) and some semaphore that
leads to lots of futex wake operations, but at least this saves
20% or so of the CPU time running offlineimap on a single folder:
Time with quick refresh and md5 in loop: 4.75s user 0.46s system 12%
cpu 41.751 total
Time with quick refresh and md5 out of loop: 4.38s user 0.50s system
14% cpu 34.799 total
Time using string compare to check folder: 4.11s user 0.47s system 13%
cpu 34.788 total
And fourth, some display fixes for Curses.Blinkenlights. I made
warnings more visible, made the new quick sync message cyan, and
made all not explicitly colored messages grey. That last one was
really bugging me. Any time OfflineIMAP printed a warning in
this UI, it had even odds of coming out black on black!
Anyway, I hope these are useful. I'm happy to revise them if you see
a problem.
--
Daniel Jacobowitz
CodeSourcery
2007-10-01 23:20:37 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
|
|
|
# OfflineImap can replace a number of full updates by quick synchronizations.
|
maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option
1. When using maxage, local and remote messagelists are supposed to only
contain messages from at most maxage days ago. But local and remote used
different timezones to calculate what "maxage days ago" means, resulting
in removals on one side. Now, we ask the local folder for maxage days'
worth of mail, find the lowest UID, and then ask the remote folder for
all UID's starting with that lowest one.
2. maxage was fundamentally wrong in the IMAP-IMAP case: it assumed that
remote messages have UIDs in the same order as their local counterparts,
which could be false, e.g. when messages are copied in quick succession.
So, remove support for maxage in the IMAP-IMAP case.
3. Add startdate option for IMAP-IMAP syncs: use messages from the given
repository starting at startdate, and all messages from the other
repository. In the first sync, the other repository must be empty.
4. Allow maxage to be specified either as number of days to sync (as
previously) or as a fixed date.
Signed-off-by: Janna Martl <janna.martl109@gmail.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2015-04-07 10:14:11 +02:00
|
|
|
# This option is ignored if maxage or startdate are used.
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# It only synchronizes a folder if
|
|
|
|
#
|
|
|
|
# 1) a Maildir folder has changed
|
|
|
|
#
|
|
|
|
# or
|
|
|
|
#
|
|
|
|
# 2) if an IMAP folder has received new messages or had messages deleted, ie
|
|
|
|
# it does not update if only IMAP flags have changed.
|
|
|
|
#
|
|
|
|
# Full updates need to fetch ALL flags for all messages, so this makes quite a
|
|
|
|
# performance difference (especially if syncing between two IMAP servers).
|
|
|
|
#
|
|
|
|
# Specify 0 for never, -1 for always (works even in non-autorefresh mode)
|
|
|
|
#
|
|
|
|
# A positive integer <n> to do <n> quick updates before doing another full
|
|
|
|
# synchronization (requires autorefresh). Updates are always performed after
|
|
|
|
# <autorefresh> minutes, be they quick or full.
|
|
|
|
#
|
|
|
|
#quick = 10
|
Daniel Jacobowitz patches
fixes deb#433732
Date: Sun, 30 Sep 2007 13:54:56 -0400
From: Daniel Jacobowitz <drow@false.org>
To: offlineimap@complete.org
Subject: Assorted patches
Here's the result of a lazy Sunday hacking on offlineimap. Sorry for
not breaking this into multiple patches. They're mostly logically
independent so just ask if that would make a difference.
First, a new -q (quick) option. The quick option means to only update
folders that seem to have had significant changes. For Maildir, any
change to any message UID or flags is significant, because checking
the flags doesn't add a significant cost. For IMAP, only a change to
the total number of messages or a change in the UID of the most recent
message is significant. This should catch everything except for
flags changes.
The difference in bandwidth is astonishing: a quick sync takes 80K
instead of 5.3MB, and 28 seconds instead of 90.
There's a configuration variable that lets you say every tenth sync
should update flags, but let all the intervening ones be lighter.
Second, a fix to the UID validity problems many people have been
reporting with Courier. As discussed in Debian bug #433732, I changed
the UID validity check to use SELECT unless the server complains that
the folder is read-only. This avoids the Courier bug (see the Debian
log for more details). This won't fix existing validity errors, you
need to remove the local status and validity files by hand and resync.
Third, some speedups in Maildir checking. It's still pretty slow
due to a combination of poor performance in os.listdir (never reads
more than 4K of directory entries at a time) and some semaphore that
leads to lots of futex wake operations, but at least this saves
20% or so of the CPU time running offlineimap on a single folder:
Time with quick refresh and md5 in loop: 4.75s user 0.46s system 12%
cpu 41.751 total
Time with quick refresh and md5 out of loop: 4.38s user 0.50s system
14% cpu 34.799 total
Time using string compare to check folder: 4.11s user 0.47s system 13%
cpu 34.788 total
And fourth, some display fixes for Curses.Blinkenlights. I made
warnings more visible, made the new quick sync message cyan, and
made all not explicitly colored messages grey. That last one was
really bugging me. Any time OfflineIMAP printed a warning in
this UI, it had even odds of coming out black on black!
Anyway, I hope these are useful. I'm happy to revise them if you see
a problem.
--
Daniel Jacobowitz
CodeSourcery
2007-10-01 23:20:37 +02:00
|
|
|
|
2008-10-01 07:04:14 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
|
|
|
# You can specify a pre and post sync hook to execute a external command. In
|
|
|
|
# this case a call to imapfilter to filter mail before the sync process starts
|
|
|
|
# and a custom shell script after the sync completes.
|
|
|
|
#
|
|
|
|
# The pre sync script has to complete before a sync to the account will start.
|
|
|
|
#
|
|
|
|
#presynchook = imapfilter -c someotherconfig.lua
|
|
|
|
#postsynchook = notifysync.sh
|
2008-10-01 07:04:14 +02:00
|
|
|
|
|
|
|
|
2015-01-27 18:56:54 +01:00
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
|
|
|
# You can specify a newmail hook to execute an external command upon receipt
|
|
|
|
# of new mail in the INBOX.
|
|
|
|
#
|
|
|
|
# This example plays a sound file of your chosing when new mail arrives.
|
|
|
|
#
|
|
|
|
# This feature is experimental.
|
|
|
|
#
|
2015-09-26 10:48:51 +02:00
|
|
|
#newmail_hook = lambda: os.system("cvlc --play-and-stop --play-and-exit /path/to/sound/file.mp3" +
|
2015-01-27 18:56:54 +01:00
|
|
|
# " > /dev/null 2>&1")
|
|
|
|
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
2011-05-07 11:00:57 +02:00
|
|
|
# OfflineImap caches the state of the synchronisation to e.g. be able to
|
2015-01-14 17:12:08 +01:00
|
|
|
# determine if a mail has been added or deleted on either side.
|
2011-05-07 11:00:57 +02:00
|
|
|
#
|
|
|
|
# The default and historical backend is 'plain' which writes out the
|
|
|
|
# state in plain text files. On Repositories with large numbers of
|
|
|
|
# mails, the performance might not be optimal, as we write out the
|
|
|
|
# complete file for each change. Another new backend 'sqlite' is
|
2011-08-25 10:18:04 +02:00
|
|
|
# available which stores the status in sqlite databases.
|
2011-05-07 11:00:57 +02:00
|
|
|
#
|
|
|
|
# If you switch the backend, you may want to delete the old cache
|
|
|
|
# directory in ~/.offlineimap/Account-<account>/LocalStatus manually
|
|
|
|
# once you are sure that things work.
|
|
|
|
#
|
|
|
|
#status_backend = plain
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
2009-08-16 14:42:39 +02:00
|
|
|
# If you have a limited amount of bandwidth available you can exclude larger
|
2015-01-14 17:12:08 +01:00
|
|
|
# messages (e.g. those with large attachments etc). If you do this it will
|
|
|
|
# appear to OfflineIMAP that these messages do not exist at all. They will not
|
|
|
|
# be copied, have flags changed etc. For this to work on an IMAP server the
|
|
|
|
# server must have server side search enabled. This works with Gmail and most
|
|
|
|
# imap servers (e.g. cyrus etc)
|
|
|
|
#
|
2009-08-16 14:42:39 +02:00
|
|
|
# The maximum size should be specified in bytes - e.g. 2000000 for approx 2MB
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
|
|
|
#maxsize = 2000000
|
2009-08-16 14:42:39 +02:00
|
|
|
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option
1. When using maxage, local and remote messagelists are supposed to only
contain messages from at most maxage days ago. But local and remote used
different timezones to calculate what "maxage days ago" means, resulting
in removals on one side. Now, we ask the local folder for maxage days'
worth of mail, find the lowest UID, and then ask the remote folder for
all UID's starting with that lowest one.
2. maxage was fundamentally wrong in the IMAP-IMAP case: it assumed that
remote messages have UIDs in the same order as their local counterparts,
which could be false, e.g. when messages are copied in quick succession.
So, remove support for maxage in the IMAP-IMAP case.
3. Add startdate option for IMAP-IMAP syncs: use messages from the given
repository starting at startdate, and all messages from the other
repository. In the first sync, the other repository must be empty.
4. Allow maxage to be specified either as number of days to sync (as
previously) or as a fixed date.
Signed-off-by: Janna Martl <janna.martl109@gmail.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2015-04-07 10:14:11 +02:00
|
|
|
# maxage enables you to sync only recent messages. There are two ways to specify
|
|
|
|
# what "recent" means: if maxage is given as an integer, then only messages from
|
|
|
|
# the last maxage days will be synced. If maxage is given as a date, then only
|
|
|
|
# messages later than that date will be synced.
|
|
|
|
#
|
|
|
|
# Messages older than the cutoff will not be synced, their flags will not be
|
|
|
|
# changed, they will not be deleted, etc. For OfflineIMAP it will be like these
|
|
|
|
# messages do not exist. This will perform an IMAP search in the case of IMAP or
|
|
|
|
# Gmail and therefore requires that the server support server side searching.
|
|
|
|
#
|
|
|
|
# Known edge cases are described in offlineimap(1).
|
2012-01-07 18:03:21 +01:00
|
|
|
#
|
maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option
1. When using maxage, local and remote messagelists are supposed to only
contain messages from at most maxage days ago. But local and remote used
different timezones to calculate what "maxage days ago" means, resulting
in removals on one side. Now, we ask the local folder for maxage days'
worth of mail, find the lowest UID, and then ask the remote folder for
all UID's starting with that lowest one.
2. maxage was fundamentally wrong in the IMAP-IMAP case: it assumed that
remote messages have UIDs in the same order as their local counterparts,
which could be false, e.g. when messages are copied in quick succession.
So, remove support for maxage in the IMAP-IMAP case.
3. Add startdate option for IMAP-IMAP syncs: use messages from the given
repository starting at startdate, and all messages from the other
repository. In the first sync, the other repository must be empty.
4. Allow maxage to be specified either as number of days to sync (as
previously) or as a fixed date.
Signed-off-by: Janna Martl <janna.martl109@gmail.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2015-04-07 10:14:11 +02:00
|
|
|
# maxage is allowed only when the local folder is of type Maildir. It can't be
|
|
|
|
# used with startdate.
|
|
|
|
#
|
|
|
|
# The maxage option expects an integer (for the number of days) or a date of the
|
|
|
|
# form yyyy-mm-dd.
|
2012-01-07 18:03:21 +01:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#maxage = 3
|
maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option
1. When using maxage, local and remote messagelists are supposed to only
contain messages from at most maxage days ago. But local and remote used
different timezones to calculate what "maxage days ago" means, resulting
in removals on one side. Now, we ask the local folder for maxage days'
worth of mail, find the lowest UID, and then ask the remote folder for
all UID's starting with that lowest one.
2. maxage was fundamentally wrong in the IMAP-IMAP case: it assumed that
remote messages have UIDs in the same order as their local counterparts,
which could be false, e.g. when messages are copied in quick succession.
So, remove support for maxage in the IMAP-IMAP case.
3. Add startdate option for IMAP-IMAP syncs: use messages from the given
repository starting at startdate, and all messages from the other
repository. In the first sync, the other repository must be empty.
4. Allow maxage to be specified either as number of days to sync (as
previously) or as a fixed date.
Signed-off-by: Janna Martl <janna.martl109@gmail.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2015-04-07 10:14:11 +02:00
|
|
|
#maxage = 2015-04-01
|
2008-10-01 07:04:14 +02:00
|
|
|
|
2011-07-12 09:34:02 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
2012-01-07 18:03:21 +01:00
|
|
|
# Maildir file format uses colon (:) separator between uniq name and info.
|
2011-07-12 09:34:02 +02:00
|
|
|
# Unfortunatelly colon is not allowed character in windows file name. If you
|
2015-01-14 17:12:08 +01:00
|
|
|
# enable maildir-windows-compatible option, OfflineIMAP will be able to store
|
2011-07-12 09:34:02 +02:00
|
|
|
# messages on windows drive, but you will probably loose compatibility with
|
2015-01-14 17:12:08 +01:00
|
|
|
# other programs working with the maildir.
|
2012-01-07 18:03:21 +01:00
|
|
|
#
|
|
|
|
#maildir-windows-compatible = no
|
2011-07-12 09:34:02 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
2015-01-08 16:00:11 +01:00
|
|
|
# Specifies if we want to sync GMail labels with the local repository.
|
2013-07-27 23:25:13 +02:00
|
|
|
# Effective only for GMail IMAP repositories.
|
2012-10-16 20:20:35 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# Non-ASCII characters in labels are bad handled or won't work at all.
|
|
|
|
#
|
2012-10-16 20:20:35 +02:00
|
|
|
#synclabels = no
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
2012-11-28 18:29:23 +01:00
|
|
|
# Name of the header to use for label storage. Format for the header
|
|
|
|
# value differs for different headers, because there are some de-facto
|
2015-01-14 17:12:08 +01:00
|
|
|
# "standards" set by popular clients:
|
|
|
|
#
|
2012-11-28 18:29:23 +01:00
|
|
|
# - X-Label or Keywords keep values separated with spaces; for these
|
|
|
|
# you, obviously, should not have label values that contain spaces;
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2012-11-28 18:29:23 +01:00
|
|
|
# - X-Keywords use comma (',') as the separator.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2012-11-28 18:29:23 +01:00
|
|
|
# To be consistent with the usual To-like headers, for the rest of header
|
|
|
|
# types we use comma as the separator.
|
2012-10-16 20:20:35 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# Use ASCII characters only.
|
|
|
|
#
|
2012-10-16 20:20:35 +02:00
|
|
|
#labelsheader = X-Keywords
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
2012-10-16 20:20:35 +02:00
|
|
|
# Set of labels to be ignored. Comma-separated list. GMail-specific
|
|
|
|
# labels all start with backslash ('\').
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# Use ASCII characters only.
|
|
|
|
#
|
2012-10-16 20:20:35 +02:00
|
|
|
#ignorelabels = \Inbox, \Starred, \Sent, \Draft, \Spam, \Trash, \Important
|
|
|
|
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
2012-10-16 20:53:54 +02:00
|
|
|
# OfflineIMAP can strip off some headers when your messages are propagated
|
|
|
|
# back to the IMAP server. This option carries the comma-separated list
|
|
|
|
# of headers to trim off. Header name matching is case-sensitive.
|
|
|
|
#
|
|
|
|
# This knob is respected only by IMAP-based accounts. Value of labelsheader
|
|
|
|
# for GMail-based accounts is automatically added to this list, you don't
|
|
|
|
# need to specify it explicitely.
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# Use ASCII characters only.
|
|
|
|
#
|
2012-10-16 20:53:54 +02:00
|
|
|
#filterheaders = X-Some-Weird-Header
|
|
|
|
|
|
|
|
|
2015-02-15 15:16:20 +01:00
|
|
|
# This option stands in the [Account Test] section.
|
|
|
|
#
|
|
|
|
# Use proxy connection for this account. Usefull to bypass the GFW in China.
|
|
|
|
# To specify a proxy connection, join proxy type, host and port with colons.
|
|
|
|
# Available proxy types are SOCKS5, SOCKS4, HTTP.
|
|
|
|
# You also need to install PySocks through pip.
|
|
|
|
#
|
2015-04-13 00:05:51 +02:00
|
|
|
# Currently, this feature leaks DNS support.
|
|
|
|
#
|
|
|
|
#proxy = SOCKS5:IP:9999
|
2015-02-15 15:16:20 +01:00
|
|
|
|
2003-04-18 04:18:34 +02:00
|
|
|
[Repository LocalExample]
|
|
|
|
|
2012-01-07 18:03:21 +01:00
|
|
|
# Each repository requires a "type" declaration. The types supported for
|
2012-10-16 20:20:35 +02:00
|
|
|
# local repositories are Maildir, GmailMaildir and IMAP.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2003-04-18 04:18:34 +02:00
|
|
|
type = Maildir
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Repository LocalExample] section.
|
|
|
|
#
|
2002-07-09 04:32:35 +02:00
|
|
|
# Specify local repository. Your IMAP folders will be synchronized
|
|
|
|
# to maildirs created under this path. OfflineIMAP will create the
|
|
|
|
# maildirs for you as needed.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2002-07-09 04:32:35 +02:00
|
|
|
localfolders = ~/Test
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Repository LocalExample] section.
|
|
|
|
#
|
2012-01-07 18:03:21 +01:00
|
|
|
# You can specify the "folder separator character" used for your Maildir
|
|
|
|
# folders. It is inserted in-between the components of the tree. If you
|
|
|
|
# want your folders to be nested directories, set it to "/". 'sep' is
|
|
|
|
# ignored for IMAP repositories, as it is queried automatically.
|
2015-02-13 17:43:29 +01:00
|
|
|
# Otherwise, default value is ".".
|
2012-01-07 18:03:21 +01:00
|
|
|
#
|
2015-09-22 09:14:03 +02:00
|
|
|
# Don't use quotes.
|
|
|
|
#
|
|
|
|
#sep = .
|
2003-04-18 04:18:34 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option
1. When using maxage, local and remote messagelists are supposed to only
contain messages from at most maxage days ago. But local and remote used
different timezones to calculate what "maxage days ago" means, resulting
in removals on one side. Now, we ask the local folder for maxage days'
worth of mail, find the lowest UID, and then ask the remote folder for
all UID's starting with that lowest one.
2. maxage was fundamentally wrong in the IMAP-IMAP case: it assumed that
remote messages have UIDs in the same order as their local counterparts,
which could be false, e.g. when messages are copied in quick succession.
So, remove support for maxage in the IMAP-IMAP case.
3. Add startdate option for IMAP-IMAP syncs: use messages from the given
repository starting at startdate, and all messages from the other
repository. In the first sync, the other repository must be empty.
4. Allow maxage to be specified either as number of days to sync (as
previously) or as a fixed date.
Signed-off-by: Janna Martl <janna.martl109@gmail.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2015-04-07 10:14:11 +02:00
|
|
|
# This option stands in the [Repository LocalExample] section.
|
|
|
|
#
|
|
|
|
# startdate syncs mails starting from a given date. It applies the date
|
|
|
|
# restriction to LocalExample only. The remote repository MUST be empty
|
|
|
|
# at the first sync where this option is used.
|
|
|
|
#
|
|
|
|
# Unlike maxage, this is supported for IMAP-IMAP sync.
|
|
|
|
#
|
|
|
|
# startdate can't be used with maxage.
|
|
|
|
#
|
|
|
|
# The startdate option expects a date in the format yyyy-mm-dd.
|
|
|
|
#
|
|
|
|
#startdate = 2015-04-01
|
|
|
|
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository LocalExample] section.
|
|
|
|
#
|
2011-09-15 15:06:32 +02:00
|
|
|
# Some users may not want the atime (last access time) of folders to be
|
|
|
|
# modified by OfflineIMAP. If 'restoreatime' is set to yes, OfflineIMAP
|
|
|
|
# will restore the atime of the "new" and "cur" folders in each maildir
|
|
|
|
# folder to their original value after each sync.
|
2006-09-06 03:35:43 +02:00
|
|
|
#
|
2011-09-15 15:06:32 +02:00
|
|
|
# In nearly all cases, the default should be fine.
|
2012-01-07 18:03:21 +01:00
|
|
|
#
|
|
|
|
#restoreatime = no
|
2006-09-06 03:35:43 +02:00
|
|
|
|
|
|
|
|
2015-03-27 17:00:14 +01:00
|
|
|
# This option stands in the [Repository LocalExample] section.
|
|
|
|
#
|
|
|
|
# Set modification time of messages basing on the message's "Date" header. This
|
|
|
|
# option makes sense for the Maildir type, only.
|
|
|
|
#
|
|
|
|
# This is useful if you are doing some processing/finding on your Maildir (for
|
|
|
|
# example, finding messages older than 3 months), without parsing each
|
|
|
|
# file/message content.
|
|
|
|
#
|
|
|
|
# If enabled, this forbid the -q (quick mode) CLI option to work correctly.
|
2015-04-06 14:17:59 +02:00
|
|
|
# This option is still "TESTING" feature.
|
2015-03-27 17:00:14 +01:00
|
|
|
#
|
|
|
|
# Default: no.
|
|
|
|
#
|
|
|
|
#utime_from_header = no
|
|
|
|
|
|
|
|
|
2015-11-04 10:32:22 +01:00
|
|
|
# This option stands in the [Repository LocalExample] section.
|
|
|
|
#
|
|
|
|
# This option is similar to "utime_from_header" and could be use as a
|
|
|
|
# complementary feature to keep track of a message date. This option only
|
|
|
|
# makes sense for the Maildir type.
|
|
|
|
#
|
|
|
|
# By default each message is stored in a file which prefix is the fetch
|
|
|
|
# timestamp and an order rank such as "1446590057_0". In a multithreading
|
|
|
|
# environment message are fetched in a random order, then you can't trust
|
|
|
|
# the file name to sort your boxes.
|
|
|
|
#
|
|
|
|
# If set to "yes" the file name prefix if build on the message "Date" header
|
|
|
|
# (which should be present) or the "Received-date" if "Date" is not
|
|
|
|
# found. If neither "Received-date" nor "Date" is found, the current system
|
|
|
|
# date is used. Now you can quickly sort your messages using their file
|
|
|
|
# names.
|
|
|
|
#
|
|
|
|
# Used in combination with "utime_from_header" all your message would be in
|
|
|
|
# order with the correct mtime attribute.
|
|
|
|
#
|
|
|
|
#filename_use_mail_timestamp = no
|
|
|
|
|
|
|
|
|
2012-10-16 20:20:35 +02:00
|
|
|
[Repository GmailLocalExample]
|
|
|
|
|
|
|
|
# This type of repository enables syncing of Gmail. All Maildir
|
|
|
|
# configuration settings are also valid here.
|
|
|
|
#
|
|
|
|
# This is a separate Repository type from Maildir because it involves
|
|
|
|
# some extra overhead which sometimes may be significant. We look for
|
|
|
|
# modified tags in local messages by looking only to the files
|
|
|
|
# modified since last run. This is usually rather fast, but the first
|
|
|
|
# time OfflineIMAP runs with synclabels enabled, it will have to check
|
|
|
|
# the contents of all individual messages for labels and this may take
|
|
|
|
# a while.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2012-10-16 20:20:35 +02:00
|
|
|
type = GmailMaildir
|
|
|
|
|
|
|
|
|
2003-04-18 04:18:34 +02:00
|
|
|
[Repository RemoteExample]
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# The remote repository. We only support IMAP or Gmail here.
|
|
|
|
#
|
2003-04-18 04:18:34 +02:00
|
|
|
type = IMAP
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# These options stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2007-10-19 02:00:12 +02:00
|
|
|
# The following can fetch the account credentials via a python expression that
|
|
|
|
# is parsed from the pythonfile parameter. For example, a function called
|
|
|
|
# "getcredentials" that parses a file "filename" and returns the account
|
|
|
|
# details for "hostname".
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
|
|
|
#remotehosteval = getcredentials("filename", "hostname", "hostname")
|
|
|
|
#remoteporteval = getcredentials("filename", "hostname", "port")
|
|
|
|
#remoteusereval = getcredentials("filename", "hostname", "user")
|
|
|
|
#remotepasseval = getcredentials("filename", "hostname", "passwd")
|
|
|
|
|
2007-10-19 02:00:12 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2002-06-20 09:40:29 +02:00
|
|
|
# Specify the remote hostname.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2002-06-21 08:51:21 +02:00
|
|
|
remotehost = examplehost
|
2002-06-20 09:40:29 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2002-06-20 09:40:29 +02:00
|
|
|
# Whether or not to use SSL.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2015-03-18 22:36:01 +01:00
|
|
|
# Note: be care to configure the 'remotehost' line with the domain name defined
|
|
|
|
# in the certificate. E.g., if you trust your provider and want to use the
|
|
|
|
# certificate it provides on a shared server. Otherwise, OfflineIMAP will stop
|
|
|
|
# and say that the domain is not named in the certificate.
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#ssl = yes
|
|
|
|
|
2002-06-20 09:40:29 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# SSL Client certificate (optional).
|
2014-11-02 09:49:26 +01:00
|
|
|
#
|
|
|
|
# Tilde and environment variable expansions will be performed.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
|
|
|
#sslclientcert = /path/to/file.crt
|
2014-11-02 09:49:26 +01:00
|
|
|
|
2008-05-23 21:58:18 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# SSL Client key (optional).
|
2014-11-02 09:49:26 +01:00
|
|
|
#
|
|
|
|
# Tilde and environment variable expansions will be performed.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
|
|
|
#sslclientkey = /path/to/file.key
|
2014-11-02 09:49:26 +01:00
|
|
|
|
2008-05-23 21:58:18 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2010-12-16 13:43:47 +01:00
|
|
|
# SSL CA Cert(s) to verify the server cert against (optional).
|
2011-01-24 11:10:19 +01:00
|
|
|
# No SSL verification is done without this option. If it is
|
2010-12-16 13:43:47 +01:00
|
|
|
# specified, the CA Cert(s) need to verify the Server cert AND
|
|
|
|
# match the hostname (* wildcard allowed on the left hand side)
|
2011-01-24 11:10:19 +01:00
|
|
|
# The certificate should be in PEM format.
|
2014-11-02 09:49:26 +01:00
|
|
|
#
|
|
|
|
# Tilde and environment variable expansions will be performed.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2015-01-18 08:45:46 +01:00
|
|
|
# Special value OS-DEFAULT makes OfflineIMAP to automatically
|
|
|
|
# determine system-wide location of standard trusted CA roots file
|
|
|
|
# for known OS distributions and use the first bundle encountered
|
|
|
|
# (if any). If no system-wide CA bundle is found, OfflineIMAP
|
|
|
|
# will refuse to continue; this is done to prevent creation
|
|
|
|
# of false security expectations ("I had configured CA bundle,
|
|
|
|
# thou certificate verification shalt be present").
|
|
|
|
#
|
|
|
|
# You can also use fingerprint verification via cert_fingerprint.
|
|
|
|
# See below for more verbose explanation.
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#sslcacertfile = /path/to/cacertfile.crt
|
2014-11-02 09:49:26 +01:00
|
|
|
|
2010-12-16 13:43:47 +01:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# If you connect via SSL/TLS (ssl = yes) and you have no CA certificate
|
|
|
|
# specified, OfflineIMAP will refuse to sync as it connects to a server
|
2011-09-12 09:50:41 +02:00
|
|
|
# with an unknown "fingerprint". If you are sure you connect to the
|
|
|
|
# correct server, you can then configure the presented server
|
2015-01-18 08:45:46 +01:00
|
|
|
# fingerprint here. OfflineIMAP will verify that the server fingerprint
|
|
|
|
# has not changed on each connect and refuse to connect otherwise.
|
|
|
|
#
|
|
|
|
# You can also configure fingerprint validation in addition to
|
|
|
|
# CA certificate validation above and it will check both:
|
|
|
|
# OfflineIMAP fill verify certificate first and if things will be fine,
|
|
|
|
# fingerprint will be validated.
|
2014-05-06 23:22:29 +02:00
|
|
|
#
|
|
|
|
# Multiple fingerprints can be specified, separated by commas.
|
|
|
|
#
|
2015-05-14 14:28:02 +02:00
|
|
|
# In Windows, Microsoft uses the term "thumbprint" instead of "fingerprint".
|
|
|
|
#
|
2014-05-06 23:22:29 +02:00
|
|
|
# Fingerprints must be in hexadecimal form without leading '0x':
|
|
|
|
# 40 hex digits like bbfe29cf97acb204591edbafe0aa8c8f914287c9.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2014-05-06 23:22:29 +02:00
|
|
|
#cert_fingerprint = <SHA1_of_server_certificate_here>[, <another_SHA1>]
|
2011-09-12 09:50:41 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2015-10-12 23:40:12 +02:00
|
|
|
# Set SSL version to use (optional).
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2013-07-07 23:18:59 +02:00
|
|
|
# It is best to leave this unset, in which case the correct version will be
|
|
|
|
# automatically detected. In rare cases, it may be necessary to specify a
|
2015-10-12 23:40:12 +02:00
|
|
|
# particular version from: tls1, ssl2, ssl3, ssl23.
|
|
|
|
#
|
|
|
|
# ssl23 is the highest protocol version that both the client and server support.
|
|
|
|
# Despite the name, this option can select “TLS” protocols as well as “SSL”.
|
2015-10-12 06:42:29 +02:00
|
|
|
#
|
|
|
|
# See the configuration option tls_level to automatically disable insecure
|
|
|
|
# protocols.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
|
|
|
#ssl_version = ssl23
|
2013-07-07 23:18:59 +02:00
|
|
|
|
|
|
|
|
2015-08-25 05:32:00 +02:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# TLS support level (optional).
|
|
|
|
#
|
|
|
|
# Specify the level of support that should be allowed for this repository.
|
2015-10-12 06:42:29 +02:00
|
|
|
# Can be used to disallow insecure SSL versions as defined by IETF
|
|
|
|
# (see https://tools.ietf.org/html/rfc6176).
|
|
|
|
#
|
|
|
|
# Supported values are:
|
2015-08-25 05:32:00 +02:00
|
|
|
# tls_secure, tls_no_ssl, tls_compat (the default).
|
|
|
|
#
|
2015-10-12 06:42:29 +02:00
|
|
|
# This option is EXPERIMENTAL.
|
|
|
|
#
|
2015-08-25 05:32:00 +02:00
|
|
|
#tls_level = tls_compat
|
|
|
|
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2002-06-20 09:40:29 +02:00
|
|
|
# Specify the port. If not specified, use a default port.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
|
|
|
#remoteport = 993
|
|
|
|
|
2002-06-20 09:40:29 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2002-06-20 09:40:29 +02:00
|
|
|
# Specify the remote user name.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2002-07-03 13:01:23 +02:00
|
|
|
remoteuser = username
|
2002-06-20 09:40:29 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2013-08-03 14:06:44 +02:00
|
|
|
# Specify the user to be authorized as. Sometimes we want to
|
|
|
|
# authenticate with our login/password, but tell the server that we
|
|
|
|
# really want to be treated as some other user; perhaps server will
|
2015-01-14 17:12:08 +01:00
|
|
|
# allow us to do that (or maybe not). Some IMAP servers migrate
|
2013-08-03 14:06:44 +02:00
|
|
|
# account names using this functionality: your credentials remain
|
|
|
|
# intact, but remote identity changes.
|
|
|
|
#
|
|
|
|
# Currently this variable is used only for SASL PLAIN authentication
|
2013-08-07 13:43:51 +02:00
|
|
|
# mechanism, so consider using auth_mechanisms to prioritize PLAIN
|
|
|
|
# or even make it the only mechanism to be tried.
|
2013-08-03 14:06:44 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#remote_identity = authzuser
|
|
|
|
|
2013-08-03 14:06:44 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# Specify which authentication/authorization mechanisms we should try and the
|
|
|
|
# order in which OfflineIMAP will try them.
|
2013-08-07 13:43:51 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# NOTE: any given mechanism will be tried ONLY if it is supported by the remote
|
|
|
|
# IMAP server.
|
2013-08-07 13:43:51 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# Default value is ranged is from strongest to more weak ones. Due to technical
|
|
|
|
# limitations, if GSSAPI is set, it will be tried first, no matter where it was
|
|
|
|
# specified in the list.
|
|
|
|
#
|
2014-01-09 21:30:41 +01:00
|
|
|
#auth_mechanisms = GSSAPI, CRAM-MD5, XOAUTH2, PLAIN, LOGIN
|
2015-01-14 17:12:08 +01:00
|
|
|
|
2013-08-07 13:43:51 +02:00
|
|
|
|
2014-01-09 21:30:41 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# XOAuth2 authentication (for instance, to use with Gmail).
|
|
|
|
#
|
|
|
|
# This feature is currently EXPERIMENTAL (tested on Gmail only, but should work
|
|
|
|
# with type = IMAP for compatible servers).
|
|
|
|
#
|
|
|
|
# Mandatory parameters are "oauth2_client_id", "oauth2_client_secret" and
|
|
|
|
# "oauth2_refresh_token". See below to learn how to get those.
|
|
|
|
#
|
|
|
|
# Specify the OAuth2 client id and secret to use for the connection..
|
|
|
|
# Here's how to register an OAuth2 client for Gmail, as of 10-2-2016:
|
|
|
|
# - Go to the Google developer console
|
|
|
|
# https://console.developers.google.com/project
|
|
|
|
# - Create a new project
|
|
|
|
# - In API & Auth, select Credentials
|
|
|
|
# - Setup the OAuth Consent Screen
|
|
|
|
# - Then add Credentials of type OAuth 2.0 Client ID
|
|
|
|
# - Choose application type Other; type in a name for your client
|
|
|
|
# - You now have a client ID and client secret
|
|
|
|
#
|
|
|
|
#oauth2_client_id = YOUR_CLIENT_ID
|
|
|
|
#oauth2_client_secret = YOUR_CLIENT_SECRET
|
|
|
|
|
|
|
|
# Specify the refresh token to use for the connection to the mail server.
|
|
|
|
# Here's an example of a way to get a refresh token:
|
|
|
|
# - Clone this project: https://github.com/google/gmail-oauth2-tools
|
|
|
|
# - Type the following command-line in a terminal and follow the instructions
|
|
|
|
# python python/oauth2.py --generate_oauth2_token \
|
|
|
|
# --client_id=YOUR_CLIENT_ID --client_secret=YOUR_CLIENT_SECRET
|
|
|
|
#
|
|
|
|
#oauth2_refresh_token = REFRESH_TOKEN
|
|
|
|
|
2013-05-03 15:56:20 +02:00
|
|
|
########## Passwords
|
|
|
|
|
2011-04-20 00:27:34 +02:00
|
|
|
# There are six ways to specify the password for the IMAP server:
|
2002-07-05 07:47:52 +02:00
|
|
|
#
|
2011-03-22 11:01:52 +01:00
|
|
|
# 1. No password at all specified in the config file.
|
|
|
|
# If a matching entry is found in ~/.netrc (see netrc (5) for
|
|
|
|
# information) this password will be used. Do note that netrc only
|
|
|
|
# allows one entry per hostname. If there is no ~/.netrc file but
|
|
|
|
# there is an /etc/netrc file, the password will instead be taken
|
|
|
|
# from there. Otherwise you will be prompted for the password when
|
|
|
|
# OfflineIMAP starts when using a UI that supports this.
|
2002-07-05 07:47:52 +02:00
|
|
|
#
|
|
|
|
# 2. The remote password stored in this file with the remotepass
|
2012-04-20 11:11:44 +02:00
|
|
|
# option. Any '%' needs to be encoded as '%%'. Example:
|
2011-03-22 11:01:52 +01:00
|
|
|
# remotepass = mypassword
|
2002-07-05 07:47:52 +02:00
|
|
|
#
|
|
|
|
# 3. The remote password stored as a single line in an external
|
|
|
|
# file, which is referenced by the remotefile option. Example:
|
2011-03-22 11:01:52 +01:00
|
|
|
# remotepassfile = ~/Password.IMAP.Account1
|
2002-07-05 08:36:34 +02:00
|
|
|
#
|
|
|
|
# 4. With a preauth tunnel. With this method, you invoke an external
|
2011-03-22 11:01:52 +01:00
|
|
|
# program that is guaranteed *NOT* to ask for a password, but rather
|
|
|
|
# to read from stdin and write to stdout an IMAP procotol stream that
|
|
|
|
# begins life in the PREAUTH state. When you use a tunnel, you do
|
|
|
|
# NOT specify a user or password (if you do, they'll be ignored.)
|
|
|
|
# Instead, you specify a preauthtunnel, as this example illustrates
|
|
|
|
# for Courier IMAP on Debian:
|
|
|
|
# preauthtunnel = ssh -q imaphost '/usr/bin/imapd ./Maildir'
|
2002-07-05 08:36:34 +02:00
|
|
|
#
|
2011-03-22 11:01:52 +01:00
|
|
|
# 5. If you are using Kerberos and have the Python Kerberos package
|
|
|
|
# installed, you should not specify a remotepass. If the user has a
|
|
|
|
# valid Kerberos TGT, OfflineIMAP will figure out the rest all by
|
|
|
|
# itself, and fall back to password authentication if needed.
|
2011-04-20 00:27:34 +02:00
|
|
|
#
|
|
|
|
# 6. Using arbitrary python code. With this method, you invoke a
|
|
|
|
# function from your pythonfile. To use this method assign the name
|
|
|
|
# of the function to the variable 'remotepasseval'. Example:
|
|
|
|
# remotepasseval = get_password("imap.example.net")
|
|
|
|
# You can also query for the username:
|
|
|
|
# remoteusereval = get_username("imap.example.net")
|
|
|
|
# This method can be used to design more elaborate setups, e.g. by
|
|
|
|
# querying the gnome-keyring via its python bindings.
|
2002-06-20 09:40:29 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
2002-07-09 04:32:35 +02:00
|
|
|
########## Advanced settings
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# These options stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# Tunnels. There are two types:
|
2013-05-03 15:56:20 +02:00
|
|
|
#
|
|
|
|
# - preauth: they teleport your connection to the remote system
|
|
|
|
# and you don't need to authenticate yourself there; the sole
|
|
|
|
# fact that you succeeded to get the tunnel running is enough.
|
|
|
|
# This tunnel type was explained above in the 'Passwords' section.
|
|
|
|
#
|
|
|
|
# - transport: the just provide the transport (probably encrypted)
|
|
|
|
# to the IMAP server, but you still need to authenticate at the
|
|
|
|
# IMAP server.
|
|
|
|
#
|
|
|
|
# Tunnels are currently working only with IMAP servers and their
|
2015-01-14 17:12:08 +01:00
|
|
|
# derivatives (GMail currently). Additionally, for GMail accounts
|
2013-05-03 15:56:20 +02:00
|
|
|
# preauth tunnel settings are ignored: we don't believe that there
|
|
|
|
# are ways to preauthenticate at Google mail system IMAP servers.
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# You must choose at most one tunnel type, be wise M'Lord!
|
2013-05-03 15:56:20 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#preauthtunnel = ssh -q imaphost '/usr/bin/imapd ./Maildir'
|
|
|
|
#transporttunnel = openssl s_client -host myimap -port 993 -quiet
|
|
|
|
|
2013-05-03 15:56:20 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# Some IMAP servers need a "reference" which often refers to the "folder root".
|
|
|
|
#
|
|
|
|
# This is most commonly needed with UW IMAP, where you might need to specify the
|
|
|
|
# directory in which your mail is stored. The 'reference' value will be prefixed
|
|
|
|
# to all folder paths refering to that repository. E.g. accessing folder 'INBOX'
|
|
|
|
# with "reference = Mail" will try to access Mail/INBOX.
|
2002-07-05 13:46:55 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# The nametrans and folderfilter functions will apply to the full path,
|
|
|
|
# including the reference prefix. Most users will not need this.
|
|
|
|
#
|
|
|
|
#reference = Mail
|
|
|
|
|
2002-07-05 13:46:55 +02:00
|
|
|
|
2015-08-29 14:53:20 +02:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# IMAP defines an encoding for non-ASCII ("international") characters. Enable
|
|
|
|
# this option if you want to decode them to the nowadays ubiquitous UTF-8.
|
|
|
|
#
|
|
|
|
# Note that the IMAP 4rev1 specification (RFC 3501) allows both UTF-8 and
|
|
|
|
# modified UTF-7 folder names.
|
|
|
|
#
|
|
|
|
# This option is disabled by default to retain compatibility with older versions
|
|
|
|
# of offlineimap.
|
|
|
|
#
|
2015-09-04 00:31:15 +02:00
|
|
|
# This option is EXPERIMENTAL.
|
|
|
|
#
|
2015-08-29 14:53:20 +02:00
|
|
|
#decodefoldernames = no
|
|
|
|
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2011-05-19 21:02:26 +02:00
|
|
|
# In between synchronisations, OfflineIMAP can monitor mailboxes for new
|
2015-01-14 17:12:08 +01:00
|
|
|
# messages using the IDLE command. If you want to enable this, specify here the
|
|
|
|
# folders you wish to monitor. IMAP protocol requires a separate connection for
|
|
|
|
# each folder monitored in this way, so setting this option will force settings
|
|
|
|
# for:
|
|
|
|
#
|
|
|
|
# - maxconnections: to be at least the number of folders you give
|
|
|
|
# - holdconnectionopen: to be true
|
|
|
|
# - keepalive: to be 29 minutes unless you specify otherwise
|
2011-05-19 21:02:26 +02:00
|
|
|
#
|
2015-01-10 01:17:33 +01:00
|
|
|
# This feature isn't complete and may well have problems. See the "Known Issues"
|
|
|
|
# entry in the manual for more details.
|
2011-05-19 21:02:26 +02:00
|
|
|
#
|
|
|
|
# This option should return a Python list. For example
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#idlefolders = ['INBOX', 'INBOX.Alerts']
|
|
|
|
|
2011-05-19 21:02:26 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2012-10-25 14:25:19 +02:00
|
|
|
# OfflineIMAP can use a compressed connection to the IMAP server.
|
|
|
|
# This can result in faster downloads for some cases.
|
|
|
|
#
|
|
|
|
#usecompression = yes
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2003-04-18 04:18:34 +02:00
|
|
|
# OfflineIMAP can use multiple connections to the server in order
|
|
|
|
# to perform multiple synchronization actions simultaneously.
|
|
|
|
# This may place a higher burden on the server. In most cases,
|
|
|
|
# setting this value to 2 or 3 will speed up the sync, but in some
|
|
|
|
# cases, it may slow things down. The safe answer is 1. You should
|
|
|
|
# probably never set it to a value more than 5.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2012-02-04 20:35:31 +01:00
|
|
|
#maxconnections = 2
|
2003-04-18 04:18:34 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2003-04-18 04:18:34 +02:00
|
|
|
# OfflineIMAP normally closes IMAP server connections between refreshes if
|
|
|
|
# the global option autorefresh is specified. If you wish it to keep the
|
|
|
|
# connection open, set this to true. If not specified, the default is
|
|
|
|
# false. Keeping the connection open means a faster sync start the
|
|
|
|
# next time and may use fewer server resources on connection, but uses
|
|
|
|
# more server memory. This setting has no effect if autorefresh is not set.
|
2012-02-04 20:35:31 +01:00
|
|
|
#
|
|
|
|
#holdconnectionopen = no
|
2003-04-18 04:18:34 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
2012-02-04 20:35:31 +01:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# If you want to have "keepalives" sent while waiting between syncs, specify the
|
|
|
|
# amount of time IN SECONDS between keepalives here. Note that sometimes more
|
|
|
|
# than this amount of time might pass, so don't make it tight. This setting has
|
|
|
|
# no effect if autorefresh and holdconnectionopen are not both set.
|
|
|
|
#
|
|
|
|
#keepalive = 60
|
|
|
|
|
2003-04-18 04:18:34 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# Normally, OfflineIMAP will expunge deleted messages from the server. You can
|
|
|
|
# disable that if you wish. This means that OfflineIMAP will mark them deleted
|
|
|
|
# on the server, but not actually delete them. You must use some other IMAP
|
|
|
|
# client to delete them if you use this setting; otherwise, the messages will
|
|
|
|
# just pile up there forever. Therefore, this setting is definitely NOT
|
|
|
|
# recommended for a long term.
|
2003-04-18 04:18:34 +02:00
|
|
|
#
|
2012-02-04 20:35:31 +01:00
|
|
|
#expunge = no
|
2010-04-21 07:09:37 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2010-04-21 07:09:37 +02:00
|
|
|
# Specify whether to process all mail folders on the server, or only
|
|
|
|
# those listed as "subscribed".
|
2012-02-04 20:35:31 +01:00
|
|
|
#
|
|
|
|
#subscribedonly = no
|
2010-04-21 07:09:37 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# You can specify a folder translator. This must be a eval-able.
|
|
|
|
#
|
|
|
|
# Python expression that takes a foldername arg and returns the new value. A
|
|
|
|
# lambda function is suggested.
|
2002-07-05 07:47:52 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# WARNING: you MUST construct it so that it NEVER returns the same value for two
|
|
|
|
# folders, UNLESS the second values are filtered out by folderfilter below.
|
|
|
|
# Failure to follow this rule will result in undefined behavior.
|
|
|
|
#
|
|
|
|
# See the user documentation for details and use cases. They are also online at:
|
2012-02-13 16:07:33 +01:00
|
|
|
# http://docs.offlineimap.org/en/latest/nametrans.html
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# This example below will remove "INBOX." from the leading edge of folders
|
|
|
|
# (great for Courier IMAP users).
|
|
|
|
#
|
|
|
|
#nametrans = lambda foldername: re.sub('^INBOX\.', '', foldername)
|
2002-07-05 07:47:52 +02:00
|
|
|
#
|
2005-01-17 21:07:35 +01:00
|
|
|
# Using Courier remotely and want to duplicate its mailbox naming
|
|
|
|
# locally? Try this:
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#nametrans = lambda foldername: re.sub('^INBOX\.*', '.', foldername)
|
2005-01-17 21:07:35 +01:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# Determines if folderfilter will be invoked on each run (dynamic folder
|
|
|
|
# filtering) or filtering status will be determined at startup (default
|
|
|
|
# behaviour).
|
2014-03-02 13:37:41 +01:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#dynamic_folderfilter = False
|
|
|
|
|
2014-03-02 13:37:41 +01:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# You can specify which folders to sync using the folderfilter setting. You can
|
|
|
|
# provide any python function (e.g. a lambda function) which will be invoked for
|
|
|
|
# each foldername. If the filter function returns True, the folder will be
|
|
|
|
# synced, if it returns False, it.
|
|
|
|
#
|
|
|
|
# The folderfilter operates on the *UNTRANSLATED* name (before any nametrans
|
2011-08-25 10:18:03 +02:00
|
|
|
# translation takes place).
|
2002-07-04 08:10:51 +02:00
|
|
|
#
|
|
|
|
# Example 1: synchronizing only INBOX and Sent.
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#folderfilter = lambda foldername: foldername in ['INBOX', 'Sent']
|
2002-07-04 08:10:51 +02:00
|
|
|
#
|
|
|
|
# Example 2: synchronizing everything except Trash.
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#folderfilter = lambda foldername: foldername not in ['Trash']
|
2002-07-04 08:10:51 +02:00
|
|
|
#
|
|
|
|
# Example 3: Using a regular expression to exclude Trash and all folders
|
|
|
|
# containing the characters "Del".
|
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#folderfilter = lambda foldername: not re.search('(^Trash$|Del)', foldername)
|
2002-07-04 08:10:51 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# If folderfilter is not specified, ALL remote folders will be synchronized.
|
2002-07-04 08:10:51 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# You can span multiple lines by indenting the others. (Use backslashes at the
|
|
|
|
# end when required by Python syntax) For instance:
|
2002-07-04 08:10:51 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
#folderfilter = lambda foldername: foldername in [
|
|
|
|
# 'INBOX', 'Sent Mail',
|
|
|
|
# 'Deleted Items', 'Received']
|
2002-07-04 08:10:51 +02:00
|
|
|
|
2011-08-29 16:00:10 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
|
|
|
# You can specify folderincludes to include additional folders. It should
|
|
|
|
# return a Python list. This might be used to include a folder that was
|
|
|
|
# excluded by your folderfilter rule, to include a folder that your server does
|
|
|
|
# not specify with its LIST option, or to include a folder that is outside your
|
|
|
|
# basic reference.
|
|
|
|
#
|
|
|
|
# The 'reference' value will not be prefixed to this folder name, even if you
|
|
|
|
# have specified one. For example:
|
|
|
|
#
|
|
|
|
#folderincludes = ['debian.user', 'debian.personal']
|
2002-07-09 04:32:35 +02:00
|
|
|
|
2012-05-08 16:41:21 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2012-05-08 16:41:21 +02:00
|
|
|
# If you do not want to have any folders created on this repository,
|
|
|
|
# set the createfolders variable to False, the default is True. Using
|
|
|
|
# this feature you can e.g. disable the propagation of new folders to
|
|
|
|
# the new repository.
|
2015-01-14 17:12:08 +01:00
|
|
|
#
|
2012-05-08 16:41:21 +02:00
|
|
|
#createfolders = True
|
|
|
|
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
2002-08-09 23:10:38 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# 'foldersort' determines how folders are sorted.
|
|
|
|
#
|
|
|
|
# This affects order of synchronization and mbnames. The expression should
|
|
|
|
# return -1, 0, or 1, as the default Python cmp() does. The two arguments, x
|
|
|
|
# and y, are strings representing the names of the folders to be sorted. The
|
|
|
|
# sorting is applied *AFTER* nametrans, if any. The default is to sort IMAP
|
|
|
|
# folders alphabetically (case-insensitive). Usually, you should never have to
|
|
|
|
# modify this. To eg. reverse the sort:
|
|
|
|
#
|
|
|
|
#foldersort = lambda x, y: -cmp(x, y)
|
|
|
|
|
2002-08-09 23:10:38 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository RemoteExample] section.
|
|
|
|
#
|
2011-05-01 20:18:29 +02:00
|
|
|
# Enable 1-way synchronization. When setting 'readonly' to True, this
|
2015-01-14 17:12:08 +01:00
|
|
|
# repository will not be modified during synchronization. Usefull to
|
2011-05-01 20:18:29 +02:00
|
|
|
# e.g. backup an IMAP server. The readonly setting can be applied to any
|
|
|
|
# type of Repository (Maildir, Imap, etc).
|
2012-02-04 20:35:31 +01:00
|
|
|
#
|
|
|
|
#readonly = False
|
2008-01-03 04:56:55 +01:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
|
2008-01-03 04:56:55 +01:00
|
|
|
[Repository GmailExample]
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# A repository using Gmail's IMAP interface.
|
|
|
|
#
|
|
|
|
# Any configuration parameter of "IMAP" type repositories can be used here.
|
|
|
|
# Only "remoteuser" (or "remoteusereval" ) is mandatory. Default values for
|
|
|
|
# other parameters are OK, and you should not need fiddle with those.
|
|
|
|
#
|
|
|
|
# The Gmail repository will use hard-coded values for "remotehost",
|
|
|
|
# "remoteport", "tunnel" and "ssl". Any attempt to set those parameters will be
|
|
|
|
# silently ignored. For details, see
|
|
|
|
#
|
|
|
|
# http://mail.google.com/support/bin/answer.py?answer=78799&topic=12814
|
|
|
|
#
|
|
|
|
# To enable GMail labels synchronisation, set the option "synclabels"
|
|
|
|
# in the corresponding "Account" section.
|
2008-01-03 04:56:55 +01:00
|
|
|
#
|
|
|
|
type = Gmail
|
|
|
|
|
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository GmailExample] section.
|
2008-08-13 01:19:38 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# Specify the Gmail user name. This is the only mandatory parameter.
|
2008-08-13 01:19:38 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
remoteuser = username@gmail.com
|
|
|
|
|
2008-08-13 01:19:38 +02:00
|
|
|
|
2015-01-14 17:12:08 +01:00
|
|
|
# This option stands in the [Repository GmailExample] section.
|
2012-02-04 20:35:31 +01:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# The trash folder name may be different from [Gmail]/Trash due to localization.
|
|
|
|
# You should look for the localized names of the spam folder too: "spamfolder"
|
|
|
|
# tunable will help you to override the standard name.
|
2012-10-16 20:20:35 +02:00
|
|
|
#
|
2015-01-14 17:12:08 +01:00
|
|
|
# For example on German Gmail, this setting should be:
|
|
|
|
#
|
|
|
|
#trashfolder = [Gmail]/Papierkorb
|