diff options
| author | Sebastian Spaeth <sebastian@sspaeth.de> | 2010-03-19 09:39:23 +0100 |
|---|---|---|
| committer | Sebastian Spaeth <sebastian@sspaeth.de> | 2010-03-19 09:39:23 +0100 |
| commit | cd109ef55916389c481fc6974a4739fdf1899c32 (patch) | |
| tree | 6033d00f3c0355b4318c28e44fbf5c88ac9cc862 | |
| parent | 7739b6e46966150be6ac6e1467bdf0a3c7da5a02 (diff) | |
notmuch restore: only delete a message's old tags if they are not a subset of the new ones.
| -rwxr-xr-x | notmuch | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() |
