From dc1ddfa7392b84e1d9d29e584b0431201ed35d35 Mon Sep 17 00:00:00 2001 From: Dustin Wyatt Date: Thu, 18 Apr 2024 13:19:07 -0500 Subject: [PATCH] Docs: Fix inbound headers example Inbound example incorrectly used `EmailMessage.getall`; should be `get_all`. https://docs.python.org/3.12/library/email.message.html#email.message.EmailMessage.get_all --- docs/inbound.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/inbound.rst b/docs/inbound.rst index 1898cc5..ea00089 100644 --- a/docs/inbound.rst +++ b/docs/inbound.rst @@ -304,7 +304,7 @@ Normalized inbound message .. code-block:: python message['reply-to'] # the Reply-To header (header keys are case-insensitive) - message.getall('DKIM-Signature') # list of all DKIM-Signature headers + message.get_all('DKIM-Signature') # list of all DKIM-Signature headers And you can use Message methods like :meth:`~email.message.EmailMessage.walk` and :meth:`~email.message.EmailMessage.get_content_type` to examine more-complex