-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 5 Nov 2013, Noel Butler wrote:
On 05/11/2013 01:16, Mark Moore wrote:
mb2md.pl
The program has at least 2 bugs in it:
. If the body has paragraph break (i.e., '\n') followed by the RFC822 keyword 'From', the original message will loose the last half of the message and a phantom message will be created.
Change from my notes:
if ( /^From /
-to-
if ( /^From .*? \d\d:\d\d:\d\d \d\d\d\d/
. I never could figure out where the second bug was. This one created some messages with blank subject lines.
You have a badly formatted mbox file, if there is such distinction neccessary:
http://manpages.ubuntu.com/manpages/precise/man5/mbox.5.html
" In order to avoid misinterpretation of lines in message bodies which begin with the four characters "From", followed by a space character, the mail delivery agent must quote any occurrence of "From " at the start of a body line. "
also look at the example of the From-line with date, your date is not RFC822. However, the date-format varies. Therefore, the start token of a (next) message in mbox are the five characters "From " at the start of a line.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUniZ9l3r2wJMiz2NAQKN5wf+NkbKObZHgFX0AqPmFJFkY7eZb4KKPBMa LuRTbk+nm7DBwtNs0kbsh7WQJLxcEc+Kdt7O7Oe1+vnE3dKMsJDEvD7iIlItKVS/ 5pZW0a4LZKEdefh5RCXXZIJbKp4isvo3LKXMFEJhMY3evoEnQAo9P1if8B+weUz9 v4DxcoasDS53JgZFUBmb2ZCxpHFvthtQdTTyJA/8RvkEioUu+iLmS18HMx1pjCZ8 G/U7O28ru2Ver8nXn5L0k9Q0GKyzZTfKg4m/YiUXe98qOc299X5D1PfHFGpJafy5 AMVFXdb9XHtXa5D9re7Zu+LTIlHxg291UgUm6oLgRETyrg1av9sZ+Q== =cCgO -----END PGP SIGNATURE-----