From cd109ef55916389c481fc6974a4739fdf1899c32 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Fri, 19 Mar 2010 09:39:23 +0100 Subject: [PATCH] notmuch restore: only delete a message's old tags if they are not a subset of the new ones. --- notmuch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()