Skip to content

Commit

Permalink
Docs: Fix inbound headers example
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dmwyatt authored Apr 18, 2024
1 parent bf257ec commit dc1ddfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/inbound.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc1ddfa

Please sign in to comment.