mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user