mb2q: Workaround broken mbox formats

mailbox format requires that lines starting with 'From ' in the mail body
are escaped. That's usually done as '>From '.

Some mailbox generators including patchwork fail to do that which confuses
the python mailbox parser as it considers a 'From ' line in the mail body
as start of the next message.

Work around it by parsing the binary file content of the mailbox manually
and by applying heuristics to distinguish between a 'From ' line in the
body and a valid unixfrom line which starts a new message.

Reported-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

1 file changed
tree: 90015943ccd856433fc9e4ab2243212ec7e570d3
  1. Documentation/
  3. .gitignore
  5. MANIFEST.in
  6. mb2q
  7. quilttoolsversion.py
  8. README.md
  9. setup.py

mb2q - Mailbox to quilt series converter


It's recommended to generate the appropriate package for your system and install it via the package manager.


See Documentation and man pages