From ac7c5a47efc80baa0270d949b72e596e5b25129b Mon Sep 17 00:00:00 2001 From: John Goerzen Date: Fri, 19 Oct 2007 01:00:12 +0100 Subject: [PATCH] Documented remotehosteval From: Ben Kibbey > > Attached is a patch to enable evaluation of account credentials with the > > remotehosteval, remoteusereval and remotepasseval configuration options. > > I needed this because rather than change all my other programs > > configuration settings when I change, say a password, I store them in a > > file. So I call a function in pythonfile which parses the credential > > file and returns the wanted info. Not really very well tested, but not > > complex either. Offlineimap is great, thanks. [ this is the doc for that patch which was already applied ] --- offlineimap.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/offlineimap.conf b/offlineimap.conf index ce6d17b..9263df7 100644 --- a/offlineimap.conf +++ b/offlineimap.conf @@ -207,6 +207,14 @@ restoreatime = no 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") +# remoteusereval = getcredentials("filename", "hostname", "user") +# remotepasseval = getcredentials("filename", "hostname", "passwd") + # Specify the remote hostname. remotehost = examplehost