Undocumented
Method | __init__ |
Undocumented |
Method | add |
Add metadata relating to the message in this envelope. |
Method | clear |
Remove metadata relating to the message in this envelope. |
Method | contents |
Return the Message contained within this Envelope. |
Method | date |
The "Date:" header from the Message within this Envelope, parsed into a `DateTime` object. |
Method | date |
Undocumented |
Method | get |
Get metadata relating to the message in this envelope. |
Method | header |
Accessor for the headers of the message in this Envelope. |
Method | header |
Accesor for the message-id header of the message in this Envelope. |
Method | in |
Return the envelopes containing the messages that this is in reply to. |
Method | mailing |
Undocumented |
Method | replies |
Return the envelopes containing the messages sent in reply to this. |
Method | size |
Undocumented |
Method | uid |
Undocumented |
Method | uidvalidity |
Undocumented |
Instance Variable | _dste |
Undocumented |
Instance Variable | _gridfs |
Undocumented |
Instance Variable | _headers |
Undocumented |
Instance Variable | _mailing |
Undocumented |
Instance Variable | _size |
Undocumented |
Instance Variable | _uid |
Undocumented |
Instance Variable | _uidvalidity |
Undocumented |
MailingList
, uidvalidity: int
, uid: int
, gridfs_id: int
, date_received: datetime
, size: int
, headers: Dict[ str, List[ str]]
):
¶
Undocumented
Add metadata relating to the message in this envelope. Parameters: - `project` -- the project or user to which this metadata relates - `key` -- the key under which the metadata should be scored - `value` -- the value of the metadata to store
Remove metadata relating to the message in this envelope. Parameters: - `project` -- the project or user to which this metadata relates - `key` -- the key under which the metadata was scored If the `key` is specified then only the single metadata value identified by the `project` and `key` is removed. If the `key` is not specified, then all metadata relating to the project is removed from this envelope.
The "Date:" header from the Message within this Envelope, parsed into a `DateTime` object.
This will return `None` if the "Date:" header is not present or cannot be parsed.
The `header("date")` method can be used to return the unparsed "Date:" header as a `str`.
Get metadata relating to the message in this envelope. Parameters: - `project` -- the project or user to which this metadata relates - `key` -- the key under which the metadata was scored
Accessor for the headers of the message in this Envelope.
Some headers, e.g., "Received:" are expected to occur multiple times within a message and will return a list containing multiple items.
Other headers, e.g., "From:", are only supposed to occur once in each message. In these cases, this method should return a list containing a single value. Note, however, that the IETF mail archive contains some malformed messages with unexpected duplicate headers. For example, there are some messages with two addresses in the "From:" line.
Accesor for the message-id header of the message in this Envelope.
Returns a string containing the message-id. In case this header is repeated, the value that is encountered last is returned. In case the header is missing the return value is None.
Return the envelopes containing the messages that this is in reply to.
Each message can only be in reply to a single other message, but there may be multiple copies of that message in the archive if it was sent to multiple lists, each of which may itself have different replies. This method returns all such copies.
If this is the first message in a thread, then an empty list is returned.