summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/account.py')
-rw-r--r--alot/account.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/alot/account.py b/alot/account.py
index 1a405df9..abd44db5 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -134,8 +134,7 @@ class Account(object):
# I wish the mailbox module were more helpful...
path = glob.glob(os.path.join(mbx._path, '*', message_id + '*'))[0]
- message = self.dbman.add_message(path)
- message.add_tags(tags)
+ message = self.dbman.add_message(path, tags)
self.dbman.flush()
return True