require a blank line before "From " lines.
+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.
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";
$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;