endolith <endol...@gmail.com> added the comment: > - If the mailbox is written using the mboxrd format and read using the mboxo > format, lines that were meant to start with ">From " are changed to ">>>From > ". This is a new type of corruption.
Well, yes. So the choices are: mboxrd as default: Sometimes results in corruption mboxo as default: Always results in corruption Is there a way to reliably detect the format of the file and produce an error if it seems to be reading it wrong? If not, maybe just include a function that guesses the format so the correct option can be found easily? If there are consecutive ">" quoted lines, like this, for instance: >This is the body. >>From my point of view >there are 3 lines. then it was probably encoded with mboxrd? If instead you find: >This is the body. >From my point of view >there are 3 lines. then it was probably encoded with mboxo? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13698> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com