diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-06-01 09:39:00 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-07-01 16:38:01 +0200 |
commit | c12540d435aca5ba3139a9aeb02207699b85eb53 (patch) | |
tree | 3183932d088307b9efdb2e388511e53e9499f15a /alot/commands | |
parent | 1bceeca953cda102923bb67dfbc8488bae5d35cc (diff) |
More missed list->set conversions for tags
Diffstat (limited to 'alot/commands')
-rw-r--r-- | alot/commands/envelope.py | 4 | ||||
-rw-r--r-- | alot/commands/search.py | 2 |
2 files changed, 3 insertions, 3 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()) diff --git a/alot/commands/search.py b/alot/commands/search.py index 8e959e65..f4e8efdc 100644 --- a/alot/commands/search.py +++ b/alot/commands/search.py @@ -208,7 +208,7 @@ class TagCommand(Command): elif self.action == 'toggle': if not self.allm: to_remove = set() - to_add = () + to_add = set() for t in tags: if t in thread.get_tags(): to_remove.add(t) |