Skip to content

Commit 24de6a4

Browse files
miss-islingtonStanFromIrelandbitdancer
authored
[3.15] Add a security warning to the mailbox docs (GH-149295) (#159667)
(cherry picked from commit c5cbe31) Co-authored-by: Stan Ulbrych <stan@python.org> Co-authored-by: R. David Murray <rdmurray@bitdance.com>
1 parent cfaf180 commit 24de6a4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎Doc/library/mailbox.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ 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 is designed for use in trusted environments,
21+
where data from untrusted sources is never passed to the module's API
22+
calls and only trusted users have access to the filesystems accessible
23+
to the module.
1824

1925
.. seealso::
2026

0 commit comments

Comments
 (0)