-
-# Enable 1-way synchronization. See above for explanation.
-#
-#readonly = False
-
-[Repository RemoteExample]
-# And this is the remote repository. We only support IMAP or Gmail here.
-
-type = IMAP
-
-# 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")
-# remoteporteval = getcredentials("filename", "hostname", "port")
-# remoteusereval = getcredentials("filename", "hostname", "user")
-# remotepasseval = getcredentials("filename", "hostname", "passwd")
-
-# Specify the remote hostname.
-remotehost = examplehost
-
-# Whether or not to use SSL.
-ssl = yes
-
-# SSL Client certificate (optional)
-# sslclientcert = /path/to/file.crt
-
-# SSL Client key (optional)
-# sslclientkey = /path/to/file.key
-
-# SSL CA Cert(s) to verify the server cert against (optional).
-# No SSL verification is done without this option. If it is
-# specified, the CA Cert(s) need to verify the Server cert AND
-# match the hostname (* wildcard allowed on the left hand side)
-# The certificate should be in PEM format.
-# sslcacertfile = /path/to/cacertfile.crt
-
-# If you connect via SSL/TLS (ssl=true) and you have no CA certificate
-# specified, offlineimap will refuse to sync as it connects to a server
-# with an unknown "fingerprint". If you are sure you connect to the
-# correct server, you can then configure the presented server
-# fingerprint here. OfflineImap will verify that the server fingerprint
-# has not changed on each connect and refuse to connect otherwise.
-# You can also configure this in addition to CA certificate validation
-# above and it will check both ways.
-
-#cert_fingerprint = <SHA1_of_server_certificate_here>
-
-# SSL version (optional)
-# 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
-# particular version from: tls1, ssl2, ssl3, ssl23 (SSLv2 or SSLv3)
-
-# ssl_version = ssl23
-
-# Specify the port. If not specified, use a default port.
-# remoteport = 993
-
-# Specify the remote user name.
-remoteuser = username
-
-# 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
-# allow us to do that (or, may be, not). Some IMAP servers migrate
-# account names using this functionality: your credentials remain
-# intact, but remote identity changes.
-#
-# Currently this variable is used only for SASL PLAIN authentication
-# mechanism, so consider using auth_mechanisms to prioritize PLAIN
-# or even make it the only mechanism to be tried.
-#
-# remote_identity = authzuser
-
-# Specify which authentication/authorization mechanisms we should try
-# and the order in which OfflineIMAP will try them. NOTE: any given
-# mechanism will be tried only if it is supported by the remote IMAP
-# server.
-#
-# Due to the technical limitations, if you're specifying GSSAPI
-# as the mechanism to try, it will be tried first, no matter where
-# it was specified in the list.
-#
-# Default value is
-# auth_mechanisms = GSSAPI, CRAM-MD5, PLAIN, LOGIN
-# ranged is from strongest to more weak ones.
-
-########## Passwords
-
-# There are six ways to specify the password for the IMAP server:
-#
-# 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.
-#
-# 2. The remote password stored in this file with the remotepass
-# option. Any '%' needs to be encoded as '%%'. 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
-#
-# 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'
-#
-# 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.
-#
-# 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.
-
-########## Advanced settings
-
-# Tunnels. There are two types:
-#
-# - 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
-# derivatives (currently, GMail). Additionally, for GMail accounts
-# preauth tunnel settings are ignored: we don't believe that there
-# are ways to preauthenticate at Google mail system IMAP servers.
-#
-# You must choose at most one tunnel type, be wise M'Lord.
-#
-# preauthtunnel = ssh -q imaphost '/usr/bin/imapd ./Maildir'
-# transporttunnel = openssl s_client -host myimap -port 993 -quiet
-
-# 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. Note that the nametrans and
-# folderfilter functions will still apply the full path including the
-# reference prefix. Most users will not need this.
-#
-# reference = Mail
-
-# In between synchronisations, OfflineIMAP can monitor mailboxes for new
-# messages using the IDLE command. If you want to enable this, specify here
-# the folders you wish to monitor. Note that the 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
-#
-# This feature isn't complete and may well have problems. See the manual
-# for more details.
-#
-# This option should return a Python list. For example
-#
-# idlefolders = ['INBOX', 'INBOX.Alerts']
-#
-
-# 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 = 2
-
-# 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 messages will just pile up there forever.
-# Therefore, this setting is definitely NOT recommended.
-#
-#expunge = no
-
-# Specify whether to process all mail folders on the server, or only
-# those listed as "subscribed".
-#
-#subscribedonly = no
-
-# You can specify a folder translator. This must be a eval-able
-# Python expression that takes a foldername arg and returns the new
-# value. I suggest a lambda. This example below will remove "INBOX." from
-# the leading edge of folders (great for Courier IMAP users)
-#
-# See the user documentation for details and use cases. They are also
-# online at:
-# http://docs.offlineimap.org/en/latest/nametrans.html
-#
-# 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
-#
-# nametrans = lambda foldername: re.sub('^INBOX\.', '', foldername)
-
-# Using Courier remotely and want to duplicate its mailbox naming
-# locally? Try this:
-#
-# nametrans = lambda foldername: re.sub('^INBOX\.*', '.', foldername)
-
-# 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
-# translation takes place).
-#
-# 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)', foldername)
-#
-# 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']
-
-
-
-# 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']
-
-
-# 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.
-#createfolders = True
-
-
-# You can specify 'foldersort' to determine 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)
-
-# Enable 1-way synchronization. When setting 'readonly' to True, this
-# repository will not be modified during synchronization. Use to
-# e.g. backup an IMAP server. The readonly setting can be applied to any
-# type of Repository (Maildir, Imap, etc).
-#