summaryrefslogtreecommitdiff
path: root/alot/commands/envelope.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r--alot/commands/envelope.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index 1502011a..914829eb 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -283,7 +283,7 @@ class SendCommand(Command):
errmsg = 'could not store mail: {}'.format(e)
ui.notify(errmsg, priority='error', block=True)
else:
- initial_tags = []
+ initial_tags = frozenset()
if self.envelope is not None:
self.envelope.sending = False
self.envelope.sent_time = datetime.datetime.now()
@@ -307,7 +307,7 @@ class SendCommand(Command):
# add mail to index if maildir path available
if path is not None:
logging.debug('adding new mail to index')
- ui.dbman.add_message(path, account.sent_tags + initial_tags)
+ ui.dbman.add_message(path, account.sent_tags | initial_tags)
await ui.apply_command(globals.FlushCommand())