aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-10-12 15:50:18 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-10-12 15:50:18 +0000
commit2d8a5885db39b866a175af0603de26d73ccb2085 (patch)
treed7860820fb4af41b14a4970b1f62ac2619ed00df
parent0e8408cc75d9fde1ce329d9644c12fd620001fb0 (diff)
downloadfetchmail-2d8a5885db39b866a175af0603de26d73ccb2085.tar.gz
fetchmail-2d8a5885db39b866a175af0603de26d73ccb2085.tar.bz2
fetchmail-2d8a5885db39b866a175af0603de26d73ccb2085.zip
Enable fetchmailconf to deal with zsh.
svn path=/trunk/; revision=2083
-rwxr-xr-xfetchmailconf7
1 files changed, 7 insertions, 0 deletions
diff --git a/fetchmailconf b/fetchmailconf
index 51f64829..6b7f0cd4 100755
--- a/fetchmailconf
+++ b/fetchmailconf
@@ -167,6 +167,13 @@ class Server:
class User:
def __init__(self):
+ if os.environ.has_key("USER"):
+ self.remote = os.environ["USER"] # Remote username
+ elif os.environ.has_key("LOGNAME"):
+ self.remote = os.environ["LOGNAME"]
+ else:
+ print "Can't get your username!"
+ sys.exit(1)
self.remote = os.environ["USER"]# Remote username
self.localnames = [self.remote,]# Local names
self.password = None # Password for mail account access