python: Fix message ID docstring

The messageidb attribute does not exist.  The returned BinString type
already allows use as both strings and binary.  Presumably this was
written before that type was adopted.
This commit is contained in:
Floris Bruynooghe 2025-02-24 21:08:19 +01:00 committed by David Bremner
parent 4540090443
commit ed29a9c37e

View file

@ -80,12 +80,6 @@ class Message(base.NotmuchObject):
def messageid(self):
"""The message ID as a string.
The message ID is decoded with the ignore error handler. This
is fine as long as the message ID is well formed. If it is
not valid ASCII then this will be lossy. So if you need to be
able to write the exact same message ID back you should use
:attr:`messageidb`.
Note that notmuch will decode the message ID value and thus
strip off the surrounding ``<`` and ``>`` characters. This is
different from Python's :mod:`email` package behaviour which