Skip to content

Commit 3006e53

Browse files
Add security warning to mailbox docs
1 parent fea2a57 commit 3006e53

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/mailbox.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ accessing and manipulating on-disk mailboxes and the messages they contain.
1515
:class:`~email.message.Message` class with format-specific state and behavior.
1616
Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
1717

18+
.. warning::
19+
20+
The :mod:`!mailbox` module assumes full control over input parameters and the
21+
underlying mailbox storage; it does not protect against untrusted paths or
22+
externally modified data.
1823

1924
.. seealso::
2025

0 commit comments

Comments
 (0)