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 | |
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
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | conf.c | 2 | ||||
-rwxr-xr-x | fetchmailconf | 9 |
3 files changed, 13 insertions, 3 deletions
@@ -2,6 +2,11 @@ (The `lines' figures total .c, .h, .l, and .y files under version control.) +* Correction for backslash-handling patch in rfc822.c. +* Fix for Debian bug Bug#1038222: fetchmail conf fails to write file + after configuration; move .fetchmailrc to .fetchmailrc.bak before + overwriting. + fetchmail-5.8.12 (Fri Jul 6 00:56:02 EDT 2001), 21052 lines: * Don't depend on having snprintf available. @@ -94,7 +94,7 @@ static void listdump(const char *name, struct idlist *list) fprintf(stdout, "\"%s\":", name); if (!list) - fputs("None,\n", stdout); + fputs("[],\n", stdout); else { struct idlist *idp; 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())) |