# HG changeset patch # User Pavel Jank # Date 1039649513 0 # Node ID 1626973bdb2b130411ce3eb9c9ea5c8e20b3fdff # Parent 31f6d22dc3749f0685765afd9ef06c94c40cbbbf Make sure every message ends with a blank line, because some mbox parsers require a blank line before "From " lines. diff -r 31f6d22dc374 -r 1626973bdb2b lib-src/b2m.pl --- a/lib-src/b2m.pl Wed Dec 11 21:29:31 2002 +0000 +++ b/lib-src/b2m.pl Wed Dec 11 23:31:53 2002 +0000 @@ -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;