aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPavel Janík2002-12-11 23:32:41 +0000
committerPavel Janík2002-12-11 23:32:41 +0000
commit649fc2c55b24de625125a9eb4adffe6d4748a29f (patch)
tree678cc71ec27a62dd8576b85d374fc0aefd4de83f /lib-src
parent590dbcbaa6a2e1a06a589e2ba779c50c5a855e5b (diff)
downloademacs-649fc2c55b24de625125a9eb4adffe6d4748a29f.tar.gz
emacs-649fc2c55b24de625125a9eb4adffe6d4748a29f.zip
Make sure every message ends with a blank line, because some mbox parsers
require a blank line before "From " lines.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/b2m.pl7
2 files changed, 9 insertions, 3 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index b316887fb43..4f0c6a07002 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,8 @@
12002-12-12 Jonathan Kamens <jik@kamens.brookline.ma.us>
2
3 * b2m.pl: Make sure every message ends with a blank line, because
4 some mbox parsers require a blank line before "From " lines.
5
12002-12-08 Richard M. Stallman <rms@gnu.org> 62002-12-08 Richard M. Stallman <rms@gnu.org>
2 7
3 * getopt.c: Do include libintl.h if HAVE_LIBINTL_H. 8 * getopt.c: Do include libintl.h if HAVE_LIBINTL_H.
diff --git a/lib-src/b2m.pl b/lib-src/b2m.pl
index 665dfe202d5..40738fd01ed 100644
--- a/lib-src/b2m.pl
+++ b/lib-src/b2m.pl
@@ -30,7 +30,7 @@ use Mail::Address;
30use Date::Parse; 30use Date::Parse;
31 31
32my($whoami) = basename $0; 32my($whoami) = basename $0;
33my($version) = '$Revision: 1.2 $'; 33my($version) = '$Revision: 1.3 $';
34my($usage) = "Usage: $whoami [--help] [--version] [--[no]full-headers] [Babyl-file] 34my($usage) = "Usage: $whoami [--help] [--version] [--[no]full-headers] [Babyl-file]
35\tBy default, full headers are printed.\n"; 35\tBy default, full headers are printed.\n";
36 36
@@ -102,8 +102,9 @@ while (<>) {
102 $full_header = $header; 102 $full_header = $header;
103 } 103 }
104 104
105 # End message with a single newline 105 # End message with two newlines (some mbox parsers require a blank
106 s/\s+$/\n/; 106 # line before the next "From " line).
107 s/\s+$/\n\n/;
107 108
108 # Quote "^From " 109 # Quote "^From "
109 s/(^|\n)From /$1>From /g; 110 s/(^|\n)From /$1>From /g;