diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-07-07 18:13:39 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-07-07 18:13:39 +0000 |
commit | a7075ed7455619934e9d32ab2b0b466eed7c7e60 (patch) | |
tree | ee6c7e08a78c5b044de8bd6c8f0a41de28cfc2c4 /fetchmailconf | |
parent | 760b91e648ac6dd4d30fe5080e4e1831ff5ed1c6 (diff) | |
download | fetchmail-a7075ed7455619934e9d32ab2b0b466eed7c7e60.tar.gz fetchmail-a7075ed7455619934e9d32ab2b0b466eed7c7e60.tar.bz2 fetchmail-a7075ed7455619934e9d32ab2b0b466eed7c7e60.zip |
Close debian bug that clobbered .fetchmailorc.
svn path=/trunk/; revision=3407
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-x | fetchmailconf | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fetchmailconf b/fetchmailconf index b993c7c6..fc4613c2 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -4,7 +4,7 @@ # by Eric S. Raymond, <esr@snark.thyrsus.com>. # Requires Python with Tkinter, and the following OS-dependent services: # posix, posixpath, socket -version = "1.37" +version = "1.38" from Tkinter import * from Dialog import * @@ -364,7 +364,8 @@ class User: for x in trimmed: res = res + " " + x res = res + "\n" - trimmed = self.fetchdomains; + trimmed = self.fetchdomains + print "FOO!", `trimmed` if trimmed != [] and trimmed[len(trimmed) - 1] == hostname: trimmed = trimmed[0:len(trimmed) - 1] if trimmed != []: @@ -833,6 +834,10 @@ class ConfigurationEdit(Frame, MyWidget): bitmap = 'question', strings = ('Yes', 'No'), default = 1).num == 0: + try: + os.rename(self.outfile, self.outfile + "~") + except OSError: + pass fm = open(self.outfile, 'w') if fm: fm.write("# Configuration created %s by fetchmailconf\n" % time.ctime(time.time())) |