On this page
  1. mailbox.Message
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

mailbox.Message

Prev: mailbox.mboxMessage | Up: mailbox | Next: mailbox.MH
Rel: mailbox.Babyl, mailbox.BabylMessage, mailbox.Error, mailbox.ExternalClashError
Ref: docs.python.org — mailbox.Message
Tags: #public #python3 #stdlib #mailbox


Import

import mailbox
from mailbox import Message

Signature & Overview

mailbox.Message(message=None)

Message with mailbox-format-specific properties.

Methods & Attributes

Usage

import mailbox

msg = mailbox.Message()
msg["From"] = "a@example.com"
assert msg["From"] == "a@example.com"

Gotchas

REPL Inspect

from mailbox import Message
help(Message)

Linked from

Related notes