diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2011-09-30 16:28:55 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2011-09-30 16:28:55 +0200 |
commit | 57c0dfcb6d20507d783f31dbbf2ffd5275b60053 (patch) | |
tree | 88400583438b94666da1ac8eedee19bb669a089a /alot/account.py | |
parent | ba5ee3e5c25cb9573ca751cd170064270ced371d (diff) |
Fix saving of sent mails and drafts
Diffstat (limited to 'alot/account.py')
-rw-r--r-- | alot/account.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |