# Sample configuration file # Copyright (C) 2002 John Goerzen # # # 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 ################################################## # General definitions ################################################## [general] # This specifies where imapsync is to store its metadata. # This directory will be created if it does not already exist. metadata = ~/.imapsync # 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 ################################################## # Mailbox name recorder ################################################## [mbnames] # imapsync can record your mailbox names in a format you specify. # 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. [Test] # Specify the remote hostname. remotehost = examplehost # 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. remoteuser = pilot # Specify the remote password. If not specified, you will be # prompted. # remotepass = fake # Specify local repository. localfolders = ~/Test # 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 will remove "INBOX." from # the leading edge of folders (great for Courier IMAP users) # nametrans = lambda foldername: re.sub('^INBOX.', '', foldername)