2002-06-20 09:40:29 +02:00
|
|
|
# Sample configuration file
|
2005-01-17 21:07:35 +01:00
|
|
|
# Copyright (C) 2002-2005 John Goerzen
|
2002-06-20 09:40:29 +02:00
|
|
|
# <jgoerzen@complete.org>
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2003-04-16 21:23:45 +02:00
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
2002-06-20 09:40:29 +02:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
2003-01-07 04:30:37 +01:00
|
|
|
# Looking for a quick start? Take a look at offlineimap.conf.minimal.
|
|
|
|
|
|
|
|
|
2002-06-21 08:51:21 +02:00
|
|
|
##################################################
|
|
|
|
# General definitions
|
|
|
|
##################################################
|
|
|
|
|
2002-06-20 09:40:29 +02:00
|
|
|
[general]
|
|
|
|
|
2002-06-21 12:01:10 +02: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.
|
|
|
|
|
2002-06-21 12:01:10 +02:00
|
|
|
metadata = ~/.offlineimap
|
2002-06-20 09:40:29 +02:00
|
|
|
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
|
|
|
accounts = Test
|
|
|
|
|
2002-07-03 13:01:23 +02:00
|
|
|
# Offlineimap can synchronize more the 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
|
2003-01-07 04:15:22 +01:00
|
|
|
# time, set it to 1.
|
2002-07-03 13:01:23 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
maxsyncaccounts = 1
|
|
|
|
|
2002-07-12 03:58:51 +02:00
|
|
|
# You can specify one or more user interface modules for OfflineIMAP
|
|
|
|
# to use. OfflineIMAP will try the first in the list, and if it
|
|
|
|
# fails, the second, and so forth.
|
|
|
|
#
|
|
|
|
# The pre-defined options are:
|
2003-01-07 03:37:19 +01:00
|
|
|
# Curses.Blinkenlights -- A text-based (terminal) interface similar to
|
|
|
|
# Tk.Blinkenlights
|
2002-07-12 03:58:51 +02:00
|
|
|
# TTY.TTYUI -- a text-based (terminal) interface
|
2002-07-22 08:55:27 +02:00
|
|
|
# Noninteractive.Basic -- Noninteractive interface suitable for cronning
|
|
|
|
# Noninteractive.Quiet -- Noninteractive interface, generates no output
|
|
|
|
# except for errors.
|
2007-07-07 02:13:14 +02:00
|
|
|
# Machine.MachineUI -- Interactive interface suitable for machine
|
|
|
|
# parsing.
|
2002-07-12 03:58:51 +02:00
|
|
|
#
|
|
|
|
# You can override this with a command-line option -u.
|
|
|
|
|
2007-07-04 18:57:09 +02:00
|
|
|
ui = Curses.Blinkenlights, TTY.TTYUI,
|
2003-01-06 23:19:00 +01:00
|
|
|
Noninteractive.Basic, Noninteractive.Quiet
|
2002-07-12 03:58:51 +02:00
|
|
|
|
2002-08-08 03:57:17 +02:00
|
|
|
# If you try to synchronize messages to a read-only folder,
|
|
|
|
# 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 propogating those changes to the IMAP server.
|
|
|
|
|
|
|
|
ignore-readonly = no
|
2002-07-12 03:58:51 +02:00
|
|
|
|
2002-08-09 23:10:38 +02:00
|
|
|
########## Advanced settings
|
|
|
|
|
|
|
|
# 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
|
|
|
#
|
|
|
|
# pythonfile = ~/.offlineimap.py
|
|
|
|
#
|
|
|
|
|
2007-07-06 18:37:58 +02:00
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# Values in the 30-120 second range are reasonable.
|
|
|
|
#
|
|
|
|
# The default is to have no timeout beyond the OS. Times are given in seconds.
|
|
|
|
#
|
|
|
|
# socktimeout = 60
|
|
|
|
|
2002-06-21 08:51:21 +02:00
|
|
|
##################################################
|
|
|
|
# Mailbox name recorder
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
[mbnames]
|
|
|
|
|
2002-06-21 12:01:10 +02: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.
|
|
|
|
|
|
|
|
enabled = no
|
|
|
|
filename = ~/Mutt/muttrc.mailboxes
|
|
|
|
header = "mailboxes "
|
|
|
|
peritem = "+%(accountname)s/%(foldername)s"
|
|
|
|
sep = " "
|
|
|
|
footer = "\n"
|
|
|
|
|
2002-10-01 00:09:27 +02: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
|
|
|
|
# that section for more information and examples.
|
|
|
|
#
|
|
|
|
# Note that this filter can be used only to further restrict mbnames
|
|
|
|
# to a subset of folders that pass the account's folderfilter.
|
|
|
|
|
2006-12-11 06:12:00 +01:00
|
|
|
[ui.Curses.Blinkenlights]
|
2007-10-13 08:07:30 +02:00
|
|
|
# Character used to indicate thread status.
|
2006-12-11 06:12:00 +01:00
|
|
|
|
|
|
|
statuschar = .
|
|
|
|
|
2002-06-21 08:51:21 +02:00
|
|
|
##################################################
|
|
|
|
# Accounts
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
# This is an account definition clause. You'll have one of these
|
|
|
|
# for each account listed in general/accounts 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
|
|
|
########## Basic settings
|
|
|
|
|
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
|
|
|
|
|
|
|
|
########## Advanced settings
|
|
|
|
|
|
|
|
# You can have offlineimap continue running indefinately, automatically
|
|
|
|
# syncing your mail periodically. If you want that, specify how
|
2003-04-29 04:25:42 +02:00
|
|
|
# frequently to do that (in minutes) here. You can also specify
|
|
|
|
# fractional minutes (ie, 3.25).
|
2003-04-18 04:18:34 +02:00
|
|
|
|
|
|
|
# autorefresh = 5
|
|
|
|
|
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
|
|
|
# You can tell offlineimap to do a number of quicker synchronizations
|
|
|
|
# between full updates. A quick synchronization only synchronizes
|
|
|
|
# if a Maildir folder has changed, or if an IMAP folder has received
|
|
|
|
# new messages or had messages deleted. It does not update if the
|
|
|
|
# only changes were to IMAP flags. Specify 0 to never do quick updates,
|
|
|
|
# -1 to always do quick updates, or a positive integer to do that many
|
|
|
|
# quick updates between each full synchronization (requires autorefresh).
|
|
|
|
|
|
|
|
# quick = 10
|
|
|
|
|
2003-04-18 04:18:34 +02:00
|
|
|
[Repository LocalExample]
|
|
|
|
|
|
|
|
# This is one of the two repositories that you'll work with given the
|
|
|
|
# above example. Each repository requires a "type" declaration.
|
|
|
|
#
|
|
|
|
# The types supported are Maildir and IMAP.
|
|
|
|
#
|
|
|
|
|
|
|
|
type = Maildir
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
localfolders = ~/Test
|
|
|
|
|
2003-04-18 04:18:34 +02:00
|
|
|
# You can specify the "path separator character" used for your Maildir
|
|
|
|
# folders. This is inserted in-between the components of the tree.
|
|
|
|
# It defaults to ".". If you want your Maildir folders to be nested,
|
|
|
|
# set it to "/".
|
|
|
|
|
|
|
|
sep = .
|
|
|
|
|
2006-09-06 03:35:43 +02:00
|
|
|
# Some users on *nix platforms may not want the atime (last access
|
|
|
|
# time) to be modified by OfflineIMAP. In these cases, they would
|
|
|
|
# want to set restoreatime to yes. OfflineIMAP will make an effort
|
|
|
|
# to not touch the atime if you do that.
|
|
|
|
#
|
|
|
|
# In most cases, the default of no should be sufficient.
|
|
|
|
|
|
|
|
restoreatime = no
|
|
|
|
|
2003-04-18 04:18:34 +02:00
|
|
|
[Repository RemoteExample]
|
|
|
|
|
2008-01-03 04:56:55 +01:00
|
|
|
# And this is the remote repository. We only support IMAP or Gmail here.
|
2003-04-18 04:18:34 +02:00
|
|
|
|
|
|
|
type = IMAP
|
|
|
|
|
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".
|
|
|
|
# remotehosteval = getcredentials("filename", "hostname", "hostname")
|
|
|
|
# remoteusereval = getcredentials("filename", "hostname", "user")
|
|
|
|
# remotepasseval = getcredentials("filename", "hostname", "passwd")
|
|
|
|
|
2002-06-20 09:40:29 +02:00
|
|
|
# Specify the remote hostname.
|
2002-06-21 08:51:21 +02:00
|
|
|
remotehost = examplehost
|
2002-06-20 09:40:29 +02:00
|
|
|
|
|
|
|
# Whether or not to use SSL.
|
|
|
|
ssl = yes
|
|
|
|
|
|
|
|
# Specify the port. If not specified, use a default port.
|
|
|
|
# remoteport = 993
|
|
|
|
|
|
|
|
# Specify the remote user name.
|
2002-07-03 13:01:23 +02:00
|
|
|
remoteuser = username
|
2002-06-20 09:40:29 +02:00
|
|
|
|
2006-05-31 07:05:15 +02:00
|
|
|
# There are four ways to specify the password for the remote IMAP
|
2002-07-05 07:47:52 +02:00
|
|
|
# server:
|
|
|
|
#
|
|
|
|
# 1. No password at all specified in the config file. You will
|
|
|
|
# be prompted for the password when OfflineIMAP starts.
|
|
|
|
#
|
|
|
|
# 2. The remote password stored in this file with the remotepass
|
|
|
|
# option. Example:
|
|
|
|
#
|
|
|
|
# remotepass = mypassword
|
|
|
|
#
|
|
|
|
# 3. The remote password stored as a single line in an external
|
|
|
|
# file, which is referenced by the remotefile option. Example:
|
|
|
|
#
|
|
|
|
# remotepassfile = ~/Password.IMAP.Account1
|
2002-07-05 08:36:34 +02:00
|
|
|
#
|
|
|
|
# 4. With a preauth tunnel. With this method, you invoke an external
|
|
|
|
# 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-06-20 09:40:29 +02:00
|
|
|
|
2002-07-09 04:32:35 +02:00
|
|
|
########## Advanced settings
|
|
|
|
|
2002-07-05 13:46:55 +02:00
|
|
|
# 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. Most users will not need this.
|
|
|
|
#
|
|
|
|
# reference = Mail
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
maxconnections = 1
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
holdconnectionopen = no
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# 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 messgaes will just pile up there forever.
|
|
|
|
# Therefore, this setting is definately NOT recommended.
|
|
|
|
#
|
|
|
|
# expunge = no
|
2002-06-21 08:51:21 +02:00
|
|
|
# You can specify a folder translator. This must be a eval-able
|
|
|
|
# Python expression that takes a foldername arg and returns the new
|
2002-07-05 07:47:52 +02:00
|
|
|
# value. I suggest a lambda. This example below will remove "INBOX." from
|
2002-06-21 08:51:21 +02:00
|
|
|
# the leading edge of folders (great for Courier IMAP users)
|
2002-07-05 07:47:52 +02:00
|
|
|
#
|
|
|
|
# WARNING: you MUST construct this such 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
|
|
|
|
#
|
2004-06-04 22:26:30 +02:00
|
|
|
# nametrans = lambda foldername: re.sub('^INBOX\.', '', foldername)
|
2002-07-03 13:01:23 +02:00
|
|
|
|
2005-01-17 21:07:35 +01:00
|
|
|
# Using Courier remotely and want to duplicate its mailbox naming
|
|
|
|
# locally? Try this:
|
|
|
|
#
|
|
|
|
# nametrans = lambda foldername: re.sub('^INBOX\.*', '.', foldername)
|
|
|
|
|
2002-07-04 08:10:51 +02:00
|
|
|
# You can specify which folders to sync. You can do it several ways.
|
|
|
|
# I'll provide some examples. The folderfilter operates on the
|
|
|
|
# *UNTRANSLATED* name, if you specify nametrans. It should return
|
|
|
|
# true if the folder is to be included; false otherwise.
|
|
|
|
#
|
|
|
|
# Example 1: synchronizing only INBOX and Sent.
|
|
|
|
#
|
|
|
|
# folderfilter = lambda foldername: foldername in ['INBOX', 'Sent']
|
|
|
|
#
|
|
|
|
# Example 2: synchronizing everything except Trash.
|
|
|
|
#
|
|
|
|
# folderfilter = lambda foldername: foldername not in ['Trash']
|
|
|
|
#
|
|
|
|
# Example 3: Using a regular expression to exclude Trash and all folders
|
|
|
|
# containing the characters "Del".
|
|
|
|
#
|
2002-07-09 04:23:47 +02:00
|
|
|
# folderfilter = lambda foldername: not re.search('(^Trash$|Del)', foldername)
|
2002-07-04 08:10:51 +02:00
|
|
|
#
|
|
|
|
# If folderfilter is not specified, ALL remote folders will be
|
|
|
|
# synchronized.
|
|
|
|
#
|
|
|
|
# You can span multiple lines by indenting the others. (Use backslashes
|
|
|
|
# at the end when required by Python syntax) For instance:
|
|
|
|
#
|
|
|
|
# folderfilter = lambda foldername: foldername in
|
|
|
|
# ['INBOX', 'Sent Mail', 'Deleted Items',
|
|
|
|
# 'Received']
|
|
|
|
#
|
|
|
|
# FYI, you could also include every folder with:
|
|
|
|
#
|
|
|
|
# folderfilter = lambda foldername: 1
|
|
|
|
#
|
|
|
|
# And exclude every folder with:
|
|
|
|
#
|
|
|
|
# folderfilter = lambda foldername: 0
|
|
|
|
|
2002-07-09 04:32:35 +02:00
|
|
|
# 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. Some examples:
|
|
|
|
#
|
|
|
|
# To include debian.user and debian.personal:
|
|
|
|
#
|
|
|
|
# folderincludes = ['debian.user', 'debian.personal']
|
|
|
|
#
|
|
|
|
# To include your INBOX (UW IMAPd users will find this useful if they
|
|
|
|
# specify a reference):
|
|
|
|
#
|
|
|
|
# folderincludes = ['INBOX']
|
|
|
|
#
|
|
|
|
# To specify a long list:
|
|
|
|
#
|
|
|
|
# folderincludes = ['box1', 'box2', 'box3', 'box4',
|
|
|
|
# 'box5', 'box6']
|
|
|
|
|
2002-08-09 23:10:38 +02:00
|
|
|
# You can specify foldersort to determine how folders are sorted.
|
|
|
|
# This affects order of synchronization and mbnames. The expression
|
2002-08-09 23:25:28 +02:00
|
|
|
# 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.
|
2002-08-09 23:10:38 +02:00
|
|
|
#
|
|
|
|
# To reverse the sort:
|
|
|
|
#
|
|
|
|
# foldersort = lambda x, y: -cmp(x, y)
|
|
|
|
|
2008-01-03 04:56:55 +01:00
|
|
|
|
|
|
|
[Repository GmailExample]
|
|
|
|
|
|
|
|
# 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`. (See
|
|
|
|
# http://mail.google.com/support/bin/answer.py?answer=78799&topic=12814)
|
|
|
|
# Any attempt to set those parameters will be silently ignored.
|
|
|
|
#
|
|
|
|
|
|
|
|
type = Gmail
|
|
|
|
|
|
|
|
# Specify the Gmail user name. This is the only mandatory parameter.
|
|
|
|
remoteuser = username@gmail.com
|
|
|
|
|
|
|
|
# Deleting a message from a Gmail folder via the IMAP interface will
|
|
|
|
# just remove that folder's label from the message: the message will
|
|
|
|
# continue to exist in the '[Gmail]/All Mail' folder. If `realdelete`
|
|
|
|
# is set to `True`, then deleted messages will really be deleted
|
|
|
|
# during `offlineimap` sync, by moving them to the '[Gmail]/Trash'
|
|
|
|
# folder. BEWARE: this will deleted a messages from *all folders* it
|
|
|
|
# belongs to!
|
|
|
|
#
|
|
|
|
# See http://mail.google.com/support/bin/answer.py?answer=77657&topic=12815
|
|
|
|
realdelete = no
|