From 57c0dfcb6d20507d783f31dbbf2ffd5275b60053 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Fri, 30 Sep 2011 16:28:55 +0200 Subject: Fix saving of sent mails and drafts --- alot/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alot/account.py') diff --git a/alot/account.py b/alot/account.py index 91ef5fff..88019f55 100644 --- a/alot/account.py +++ b/alot/account.py @@ -120,7 +120,7 @@ class Account(object): :param mail: the mail to store :type mail: `email.message.Message` or string """ - if self.sent_box: + if self.sent_box is not None: self.store_mail(self.sent_box, mail) def store_draft_mail(self, mail): @@ -129,7 +129,7 @@ class Account(object): :param mail: the mail to store :type mail: `email.message.Message` or string """ - if self.draft_box: + if self.draft_box is not None: self.store_mail(self.sent_box, mail) def send_mail(self, mail): -- cgit v1.2.3