MiĆkiewicz. (MA)
* Global variable cleanup, to fix daemon mode reinitialization problems. Patch
by Sunil Shetye. (MA)
+* fetchmailconf -h documents the fetchmailconf -h option. Matthias Andree
+* fetchmailconf -V now prints the fetchmailconf version. Matthias Andree
# INTERNAL CHANGES
* Switched to automake. Matthias Andree.
# Matthias Andree <matthias.andree@gmx.de>
# Requires Python with Tkinter, and the following OS-dependent services:
# posix, posixpath, socket
-version = "1.49"
+version = "1.50"
from Tkinter import *
from Dialog import *
#
# Process options
- (options, arguments) = getopt.getopt(sys.argv[1:], "df:h")
+ (options, arguments) = getopt.getopt(sys.argv[1:], "df:hV")
dump = rcfile = None;
for (switch, val) in options:
if (switch == '-d'):
rcfile = val
elif (switch == '-h'):
print """
-Usage: fetchmailconf [-d] [-f fetchmailrc]
+Usage: fetchmailconf {[-d] [-f fetchmailrc]|-h|-V}
-d - dump configuration (for debugging)
-f fmrc - read alternate fetchmailrc file
+-h - print this help text and quit
+-V - print fetchmailconf version and quit
"""
sys.exit(0)
+ elif (switch == '-V'):
+ print "fetchmailconf %s" % version
+ sys.exit(0)
# Get client host's FQDN
hostname = socket.gethostbyaddr(socket.gethostname())[0]