Make sure every message ends with a blank line, because some mbox parsers

require a blank line before "From " lines.
This commit is contained in:
Pavel Janík 2002-12-11 23:32:41 +00:00
parent 590dbcbaa6
commit 649fc2c55b
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2002-12-12 Jonathan Kamens <jik@kamens.brookline.ma.us>
* b2m.pl: Make sure every message ends with a blank line, because
some mbox parsers require a blank line before "From " lines.
2002-12-08 Richard M. Stallman <rms@gnu.org>
* getopt.c: Do include libintl.h if HAVE_LIBINTL_H.

View file

@ -30,7 +30,7 @@
use Date::Parse;
my($whoami) = basename $0;
my($version) = '$Revision: 1.2 $';
my($version) = '$Revision: 1.3 $';
my($usage) = "Usage: $whoami [--help] [--version] [--[no]full-headers] [Babyl-file]
\tBy default, full headers are printed.\n";
@ -102,8 +102,9 @@
$full_header = $header;
}
# End message with a single newline
s/\s+$/\n/;
# End message with two newlines (some mbox parsers require a blank
# line before the next "From " line).
s/\s+$/\n\n/;
# Quote "^From "
s/(^|\n)From /$1>From /g;