[PATCH] offlineimap.conf: Adding a sixth password option

Thomas Kahle tomka at gentoo.org
Mon Apr 18 19:59:50 BST 2011


Hi,

please find a attached a small patch that adds a sixth option of how to
specify your password to offlineimap.conf.  It is based against master
of today.

Thanks,
Thomas

-- 
Thomas Kahle
http://dev.gentoo.org/~tomka/
-------------- next part --------------
From fa88d906e40dba6debb1760b4cfe5c5641ff7367 Mon Sep 17 00:00:00 2001
From: Thomas Kahle <tomka at gentoo.org>
Date: Mon, 18 Apr 2011 20:56:47 +0200
Subject: [PATCH] Adding an entry to offlineimap.conf that explain how
 to use python code to query for a password.


Signed-off-by: Thomas Kahle <tomka at gentoo.org>
---
 offlineimap.conf |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/offlineimap.conf b/offlineimap.conf
index 987b6b4..7a62d17 100644
--- a/offlineimap.conf
+++ b/offlineimap.conf
@@ -289,7 +289,7 @@ ssl = yes
 # Specify the remote user name.
 remoteuser = username
 
-# There are five ways to specify the password for the IMAP server:
+# 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
@@ -320,6 +320,15 @@ remoteuser = username
 #    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
 
-- 
1.7.3.4

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 316 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110418/5c82564a/attachment.sig>


More information about the OfflineIMAP-project mailing list