X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch;h=e4e07bcffe16e208e72265822aadc0c2e7d3589b;hb=b42fdb0f70c23d72b0c7e91c6e09f48192a8206c;hp=d28c6ea42ca4ce7e2a9999b4964119da52f74b21;hpb=f2c49bb070f94bcd8ebd19150e640d5111d46777;p=notmuch 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()