2002-06-20 09:40:29 +02:00
|
|
|
# Sample configuration file
|
|
|
|
# Copyright (C) 2002 John Goerzen
|
|
|
|
# <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
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
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-06-21 12:01:10 +02:00
|
|
|
# You can have offlineimap continue running indefinately, automatically
|
2002-06-21 09:25:24 +02:00
|
|
|
# syncing your mail periodically. If you want that, specify how
|
|
|
|
# frequently to do that (in minutes) here.
|
|
|
|
|
|
|
|
# autorefresh = 5
|
|
|
|
|
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
|
|
|
|
# time, leave it at 1.
|
|
|
|
#
|
|
|
|
|
|
|
|
maxsyncaccounts = 1
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
##################################################
|
|
|
|
# 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
|
|
|
|
|
|
|
[Test]
|
|
|
|
# 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
|
|
|
|
2002-07-05 07:47:52 +02:00
|
|
|
# There are three ways to specify the password for the remote IMAP
|
|
|
|
# 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-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
|
|
|
|
|
2002-07-05 07:47:52 +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.
|
2002-06-20 09:40:29 +02:00
|
|
|
|
|
|
|
localfolders = ~/Test
|
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
|
|
|
|
#
|
2002-06-21 08:51:21 +02:00
|
|
|
# nametrans = lambda foldername: re.sub('^INBOX.', '', foldername)
|
2002-07-03 13:01:23 +02:00
|
|
|
|
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".
|
|
|
|
#
|
|
|
|
# folderfilter = lambda foldername: not re.search('(^Trash$|Del)')
|
|
|
|
#
|
|
|
|
# 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-03 13:01:23 +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
|
|
|
|
|