From e67561249eaa7bf8b9aed6633ade6e67a0806d73 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 25 Feb 2008 23:54:19 +0000 Subject: quote folder name when writing configuration, Berlios Bug #13207, report + fix by Terry Brown. svn path=/branches/BRANCH_6-3/; revision=5163 --- NEWS | 2 ++ fetchmailconf.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 14ebc107..af27ede1 100644 --- a/NEWS +++ b/NEWS @@ -75,6 +75,8 @@ fetchmail 6.3.9 (not yet released): * Allow .fetchmailrc and .fetchids to be symlinks, as the manpage does not document they aren't allowed - fixes Debian Bug #452907 (Roger Leigh). TOCTOU race persists. +* fetchmailconf quotes mailbox (folder) names when writing the configuration. + Fixes BerliOS Bug #13207 (reported + fix suggested by Terry Brown). # CHANGES: * Removed dead FETCHMAIL_DEBUG code from fetchmail.h that was disabled by diff --git a/fetchmailconf.py b/fetchmailconf.py index 41c4d398..3c7f5c38 100755 --- a/fetchmailconf.py +++ b/fetchmailconf.py @@ -5,7 +5,7 @@ # Matthias Andree # Requires Python with Tkinter, and the following OS-dependent services: # posix, posixpath, socket -version = "1.52 $Revision$" +version = "1.53 $Revision$" from Tkinter import * from Dialog import * @@ -397,7 +397,7 @@ class User: if self.mailboxes: res = res + " folder" for x in self.mailboxes: - res = res + " " + x + res = res + ' "%s"' % x res = res + "\n" for fld in ('smtpaddress', 'preconnect', 'postconnect', 'mda', 'bsmtp', 'properties'): if getattr(self, fld): -- cgit v1.2.3