VirtualMailManager/Handler.py
branchv0.6.x
changeset 223 5c7b7cbb01cd
parent 222 d0c16e70a9fb
child 233 55503d63ba30
--- a/VirtualMailManager/Handler.py	Sun Feb 28 20:51:34 2010 +0000
+++ b/VirtualMailManager/Handler.py	Mon Mar 01 02:31:03 2010 +0000
@@ -246,8 +246,8 @@
         """Creates a subscriptions file with the mailboxes from `folderlist`"""
         fname = os.path.join(self._Cfg.dget('maildir.name'), 'subscriptions')
         sf = open(fname, 'w')
-        for f in folderlist:
-            sf.write('%s\n' % f)
+        sf.write('\n'.join(folderlist))
+        sf.write('\n')
         sf.flush()
         sf.close()
         os.chown(fname, uid, gid)