dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 70af04da09c300a107ca591d4577a2e97734a46a
parent b1916292b28fa7867b977ec732eeaf7e55fab036
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Mon,  7 Mar 2016 13:35:36 -0800

fix function name

Diffstat:
M.mutt/offlineimap.py | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.mutt/offlineimap.py b/.mutt/offlineimap.py @@ -10,7 +10,7 @@ user = getpass.getuser() home = os.getenv('HOME') -def get_keychain_pass_osx(account=None, server=None): +def get_keychain_pass(account=None, server=None): if sys.platform == 'darwin': command = 'sudo -u ' + user + \ ' /usr/bin/security -v find-internet-password -g -a ' + account +\ @@ -21,3 +21,9 @@ def get_keychain_pass_osx(account=None, server=None): if l.startswith('password: ')][0] return re.match(r'password: "(.*)"', outtext).group(1) + + elif sys.platform == 'linux2': + pass + + else: + raise Exception('Platform "' + sys.platform + '" not supported.')