Update mutt/offlineimap.py
replaced sjl username with `whoami` for general purpose user detection
author |
fpischedda <francesco.pischedda@gmail.com> |
date |
Tue, 02 Oct 2012 12:47:37 +0300 |
parents |
1d45e21ca4d7
|
children |
c82fca40999a
|
branches/tags |
(none) |
files |
mutt/offlineimap.py |
Changes
--- a/mutt/offlineimap.py Sun Sep 30 12:01:01 2012 -0400
+++ b/mutt/offlineimap.py Tue Oct 02 12:47:37 2012 +0300
@@ -6,9 +6,9 @@
'command': 'find-internet-password',
'account': account,
'server': server,
- 'keychain': '/Users/sjl/Library/Keychains/login.keychain',
+ 'keychain': '/Users/`whoami`/Library/Keychains/login.keychain',
}
- command = "sudo -u sjl %(security)s -v %(command)s -g -a %(account)s -s %(server)s %(keychain)s" % params
+ command = "sudo -u `whoami` %(security)s -v %(command)s -g -a %(account)s -s %(server)s %(keychain)s" % params
output = subprocess.check_output(command, shell=True, stderr=subprocess.STDOUT)
outtext = [l for l in output.splitlines()
if l.startswith('password: ')][0]