diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-02-05 14:19:46 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-02-05 14:26:33 +0100 |
commit | f0f911b0063f737f81096078bcf0ba98f97b9c52 (patch) | |
tree | 977af38422c899c7b73dd6d04606737a605f810a /alot/db/manager.py | |
parent | e331cc44b672d39e09b5c971c4f3a99d5a3c93cc (diff) |
Drop support for removing messages.
This functionality is too obscure and dangerous, it should be done
manually instead.
Diffstat (limited to 'alot/db/manager.py')
-rw-r--r-- | alot/db/manager.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/alot/db/manager.py b/alot/db/manager.py index 956ddcbc..8f457712 100644 --- a/alot/db/manager.py +++ b/alot/db/manager.py @@ -146,10 +146,6 @@ class DBManager: msg.thaw() logging.debug('thaw') - elif cmd == 'remove': - path = current_item[2] - db.remove_message(path) - elif cmd == 'setconfig': key = current_item[2] value = current_item[3] @@ -442,20 +438,6 @@ class DBManager: else: self.writequeue.append(('add', afterwards, path, tags)) - def remove_message(self, message, afterwards=None): - """ - Remove a message from the notmuch index - - :param message: message to remove - :type message: :class:`Message` - :param afterwards: callback to trigger after removing - :type afterwards: callable or None - """ - if self.ro: - raise DatabaseROError() - path = message.get_filename() - self.writequeue.append(('remove', afterwards, path)) - def save_named_query(self, alias, querystring, afterwards=None): """ add an alias for a query string. |