/head: changeset 80

Added some more examples as well as remotepassfile.
This commit is contained in:
jgoerzen 2002-07-05 06:47:52 +01:00
parent 093e1fb6fb
commit 872ec1b9f2
4 changed files with 36 additions and 7 deletions

View File

@ -1,3 +1,9 @@
offlineimap (2.0.2) unstable; urgency=low
* Added support for remotepassfile. Closes: #151943.
-- John Goerzen <jgoerzen@complete.org> Thu, 4 Jul 2002 14:46:23 -0500
offlineimap (2.0.1) unstable; urgency=low offlineimap (2.0.1) unstable; urgency=low
* Fixed a bug with not properly propogating foldersep changes. * Fixed a bug with not properly propogating foldersep changes.

View File

@ -91,19 +91,38 @@ ssl = yes
# Specify the remote user name. # Specify the remote user name.
remoteuser = username remoteuser = username
# Specify the remote password. If not specified, you will be # There are three ways to specify the password for the remote IMAP
# prompted. # server:
# remotepass = fake #
# 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
# Specify local repository. # 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 localfolders = ~/Test
# You can specify a folder translator. This must be a eval-able # You can specify a folder translator. This must be a eval-able
# Python expression that takes a foldername arg and returns the new # Python expression that takes a foldername arg and returns the new
# value. I suggest a lambda. This example will remove "INBOX." from # value. I suggest a lambda. This example below will remove "INBOX." from
# the leading edge of folders (great for Courier IMAP users) # the leading edge of folders (great for Courier IMAP users)
#
# 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) # nametrans = lambda foldername: re.sub('^INBOX.', '', foldername)
# You can specify which folders to sync. You can do it several ways. # You can specify which folders to sync. You can do it several ways.

View File

@ -58,6 +58,10 @@ threadutil.initInstanceLimit("ACCOUNTLIMIT", config.getint("general",
for account in accounts: for account in accounts:
if config.has_option(account, "remotepass"): if config.has_option(account, "remotepass"):
passwords[account] = config.get(account, "remotepass") passwords[account] = config.get(account, "remotepass")
elif config.has_option(account, "remotepassfile"):
passfile = os.path.expanduser(config.get(account, "remotepassfile"))
passwords[account] = passfile.readline().strip()
passfile.close()
else: else:
passwords[account] = ui.getpass(account, config) passwords[account] = ui.getpass(account, config)
for instancename in ["FOLDER_" + account, "MSGCOPY_" + account]: for instancename in ["FOLDER_" + account, "MSGCOPY_" + account]:

View File

@ -1,5 +1,5 @@
productname = 'OfflineIMAP' productname = 'OfflineIMAP'
versionstr = "2.0.1" versionstr = "2.0.2"
versionlist = versionstr.split(".") versionlist = versionstr.split(".")
major = versionlist[0] major = versionlist[0]