From ed29a9c37ec382fc2d5b1d1ecc1f1fb28a6769c6 Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Mon, 24 Feb 2025 21:08:19 +0100 Subject: [PATCH] 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. --- bindings/python-cffi/notmuch2/_message.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bindings/python-cffi/notmuch2/_message.py b/bindings/python-cffi/notmuch2/_message.py index 4c196074..f4c7ef02 100644 --- a/bindings/python-cffi/notmuch2/_message.py +++ b/bindings/python-cffi/notmuch2/_message.py @@ -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 -- 2.45.2