]> git.notmuchmail.org Git - notmuch/commit
notmuch show: Add a --format=mbox option
authorCarl Worth <cworth@cworth.org>
Wed, 9 Jun 2010 02:45:54 +0000 (19:45 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 9 Jun 2010 02:45:54 +0000 (19:45 -0700)
commit33cd247dc183708cf710d1afcbc0c3ed6ac6e2b7
treefd820af5f4539efa25b3cfa581f552ec773cf187
parent2ead072e85315387c0cc3c2236cdedb59503881e
notmuch show: Add a --format=mbox option

We don't love the mbox format, but it's still sometimes the most
practical way to share a collection of messages as a single file.

Here we implement the "mboxrd" variant of the mbox file format. This
variant applies reversible escaping by prefixing a '>' character to
all lines in the email messages matching the regular expression:

"^>*From "

This allows the escaping to be reliably removed. A reader should remove
a '>' from any line matching the regular expression:

"^>>*From "

More details on the mboxrd formats (and others as well) can be found
here:

http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/mail-mbox-formats.html
notmuch-show.c