Ordering of mailbox.mbox contents?

T

Tim Chase

Reading through the docs[1] and the source, I'm trying to discern if
there's any guarantee that the contents of a mbox file remain in a
consistent ordering across add/delete calls.

As best I can tell from the source, it _looks_ like the code keeps
an existing file in the same order, deletions remove without
changing the order, and additions append at the end of the file in
the order they're added. That's what I'd expect.

Is this accurate, or have I missed anything?

Thanks,

-tkc


[1]
http://docs.python.org/library/mailbox.html#mbox
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top