]> git.notmuchmail.org Git - notmuch/blobdiff - cnotmuch/database.py
notmuch: implement tag command
[notmuch] / cnotmuch / database.py
index 79f57ea2275f2a12ea7e57f50491068899cbb3a4..9c78b461310399e4531f3b8945b7d417ad7997de 100644 (file)
@@ -714,8 +714,12 @@ class Message(object):
     def remove_tag(self, tag):
         """Removes a tag from the given message
 
     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.
         :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:
 
                   Raises an exception otherwise.
         :exception: :exc:`NotmuchError`. They have the following meaning: