summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
Diffstat (limited to 'alot')
-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):