Module Expr Str Import alias Import alias Assign NameStore BinOpMult BinOpMult Num Num Num ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad BinOpMult Num Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return Assert CompareIsNot AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Num BinOpSub NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Str body Break Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num If CompareLtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr orelse While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Break Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list
N/A N/A Useful utilities for working with the `mbox`_-formatted
mailboxes. Credit to Mark Williams for these.

.. _mbox: https://en.wikipedia.org/wiki/Mbox
 N/A mailbox N/A tempfile N/A DEFAULT_MAXMEM N/A N/A 4 1024 1024 mbox_readonlydir N/A N/A mailbox mbox N/A N/A A subclass of :class:`mailbox.mbox` suitable for use with mboxs
    insides a read-only mail directory, e.g., ``/var/mail``. Otherwise
    the API is exactly the same as the built-in mbox.

    Deletes messages via truncation, in the manner of `Heirloom mailx`_.

    Args:
        path (str): Path to the mbox file.
        factory (type): Message type (defaults to :class:`rfc822.Message`)
        create (bool): Create mailbox if it does not exist. (defaults
                       to ``True``)
        maxmem (int): Specifies, in bytes, the largest sized mailbox
                      to attempt to copy into memory. Larger mailboxes
                      will be copied incrementally which is more
                      hazardous. (defaults to 4MB)

    .. note::

       Because this truncates and rewrites parts of the mbox file,
       this class can corrupt your mailbox.  Only use this if you know
       the built-in :class:`mailbox.mbox` does not work for your use
       case.

    .. _Heirloom mailx: http://heirloom.sourceforge.net/mailx.html
     __init__ N/A N/A self path factory create maxmem N/A None True N/A 1024 1024 N/A N/A N/A N/A N/A mailbox mbox __init__ self path factory create N/A N/A self maxmem maxmem N/A flush N/A N/A self N/A N/A N/A Write any pending changes to disk. This is called on mailbox
        close and is usually not called explicitly.

        .. note::

           This deletes messages via truncation. Interruptions may
           corrupt your mailbox.
         N/A N/A N/A self _pending N/A N/A N/A self _pending_sync N/A N/A N/A N/A mailbox _sync_flush N/A self _file N/A N/A self _pending_sync False N/A N/A N/A N/A self _toc None N/A N/A N/A N/A self _file seek 0 2 N/A cur_len N/A N/A N/A self _file tell N/A N/A cur_len N/A self _file_length N/A N/A N/A N/A mailbox ExternalClashError N/A Size of mailbox file changed (expected %i, found %i) N/A N/A self _file_length cur_len N/A N/A N/A N/A self _file seek 0 N/A N/A N/A tempfile TemporaryFile new_file N/A N/A new_toc N/A N/A N/A N/A self _pre_mailbox_hook new_file N/A key N/A sorted N/A N/A N/A self _toc keys N/A N/A N/A start stop N/A N/A self _toc N/A key N/A N/A N/A N/A self _file seek start N/A N/A N/A self _pre_message_hook new_file N/A new_start N/A N/A new_file tell N/A True N/A N/A buffer N/A N/A N/A self _file read N/A min 4096 N/A stop N/A N/A N/A self _file tell N/A N/A buffer N/A N/A N/A N/A N/A new_file write buffer N/A N/A new_toc N/A key N/A new_start N/A N/A new_file tell N/A N/A N/A self _post_message_hook new_file N/A N/A self _file_length N/A N/A new_file tell N/A N/A N/A N/A self _file seek 0 N/A N/A N/A new_file seek 0 N/A N/A N/A self _file_length N/A self maxmem N/A N/A N/A N/A N/A self _file write N/A N/A new_file read N/A N/A True N/A N/A buffer N/A N/A new_file read 4096 N/A N/A buffer N/A N/A N/A N/A N/A N/A self _file write buffer N/A N/A N/A N/A self _file truncate N/A N/A self _toc new_toc N/A N/A self _pending False N/A N/A self _pending_sync False N/A N/A self _locked N/A N/A N/A N/A mailbox _lock_file N/A self _file dotlock False N/A N/A