Why is there no get_body() in mailbox.Maildir?

Chris Green cl at isbd.net
Sun Nov 28 11:52:11 EST 2021


Stefan Ram <ram at zedat.fu-berlin.de> wrote:
> Chris Green <cl at isbd.net> writes:
> >I thought MaildirMessage inherited from email.message, 
> 
>   It inherits from mailbox.Message which inherits from
>   email.message.Message which has no "get_body" method.
> 
So the documentation at:-
    https://docs.python.org/3/library/email.message.html

is very confusing then.  It has a get_body method listed in the
email.message.EmailMessage class.

Where is email.message.Message documented?


>   email.message.MIMEPart has a get_body method.
>  
>   Also check out: get_payload.
> 
> 
-- 
Chris Green
·


More information about the Python-list mailing list