X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=cnotmuch%2Fdatabase.py;h=9c78b461310399e4531f3b8945b7d417ad7997de;hp=79f57ea2275f2a12ea7e57f50491068899cbb3a4;hb=23b32a7dfdeec9acc2ad800e1d307b31cf82052d;hpb=99880b7dbe0169fe303ef2e77984b46a55a74560 diff --git a/cnotmuch/database.py b/cnotmuch/database.py index 79f57ea2..9c78b461 100644 --- a/cnotmuch/database.py +++ b/cnotmuch/database.py @@ -714,8 +714,12 @@ class Message(object): def remove_tag(self, tag): """Removes a tag from the given message + If the message has no such tag, this is a non-operation and + will report success anyway. + :param tag: String with a 'tag' to be removed. - :returns: STATUS.SUCCESS if the tag was successfully removed. + :returns: STATUS.SUCCESS if the tag was successfully removed or if + the message had no such tag. Raises an exception otherwise. :exception: :exc:`NotmuchError`. They have the following meaning: