diff options
| author | Pavel Janík | 2002-12-11 23:32:41 +0000 |
|---|---|---|
| committer | Pavel Janík | 2002-12-11 23:32:41 +0000 |
| commit | 649fc2c55b24de625125a9eb4adffe6d4748a29f (patch) | |
| tree | 678cc71ec27a62dd8576b85d374fc0aefd4de83f /lib-src | |
| parent | 590dbcbaa6a2e1a06a589e2ba779c50c5a855e5b (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/b2m.pl | 7 |
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 @@ | |||
| 1 | 2002-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 | |||
| 1 | 2002-12-08 Richard M. Stallman <rms@gnu.org> | 6 | 2002-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; | |||
| 30 | use Date::Parse; | 30 | use Date::Parse; |
| 31 | 31 | ||
| 32 | my($whoami) = basename $0; | 32 | my($whoami) = basename $0; |
| 33 | my($version) = '$Revision: 1.2 $'; | 33 | my($version) = '$Revision: 1.3 $'; |
| 34 | my($usage) = "Usage: $whoami [--help] [--version] [--[no]full-headers] [Babyl-file] | 34 | my($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; |