Commit 649fc2c5 authored by Pavel Janík's avatar Pavel Janík

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

require a blank line before "From " lines.
parent 590dbcba
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.
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment