aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Spaeth <sebastian@sspaeth.de>2010-03-19 09:39:23 +0100
committerSebastian Spaeth <sebastian@sspaeth.de>2010-03-19 09:39:23 +0100
commitcd109ef55916389c481fc6974a4739fdf1899c32 (patch)
tree6033d00f3c0355b4318c28e44fbf5c88ac9cc862
parent7739b6e46966150be6ac6e1467bdf0a3c7da5a02 (diff)
notmuch restore: only delete a message's old tags if they are not a subset of the new ones.
-rwxr-xr-xnotmuch3
1 files changed, 2 insertions, 1 deletions
diff --git a/notmuch b/notmuch
index d28c6ea4..e4e07bcf 100755
--- a/notmuch
+++ b/notmuch
@@ -235,7 +235,8 @@ if __name__ == '__main__':
#set the new tags
msg.freeze()
- msg.remove_all_tags()
+ #only remove tags if the new ones are not a superset anyway
+ if not (new_tags > old_tags): msg.remove_all_tags()
for tag in new_tags: msg.add_tag(tag)
msg.thaw()