summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2011-09-30 16:28:55 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2011-09-30 16:28:55 +0200
commit57c0dfcb6d20507d783f31dbbf2ffd5275b60053 (patch)
tree88400583438b94666da1ac8eedee19bb669a089a /alot/account.py
parentba5ee3e5c25cb9573ca751cd170064270ced371d (diff)
Fix saving of sent mails and drafts
Diffstat (limited to 'alot/account.py')
-rw-r--r--alot/account.py4
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):