+2002-07-29 Jonathan Kamens <jik@kamens.brookline.ma.us>
+
+ * b2m.pl: Fix regexp for finding return address fields.
+
2002-07-15 Stefan Monnier <monnier@cs.yale.edu>
* make-docfile.c (scan_c_file): Warn about missing `usage' info.
use Date::Parse;
my($whoami) = basename $0;
-my($version) = '$Revision: 1.1 $';
+my($version) = '$Revision: 1.2 $';
my($usage) = "Usage: $whoami [--help] [--version] [--[no]full-headers] [Babyl-file]
\tBy default, full headers are printed.\n";
}
else {
foreach my $addr_header qw(return-path from really-from sender) {
- if ($full_header =~ /(?:^|\n)$addr_header:\s*((?:\S.*\n)+)/i) {
+ if ($full_header =~ /(?:^|\n)$addr_header:\s*(.*\n(?:\B.*\n)*)/i) {
my($addr) = Mail::Address->parse($1);
$from_addr = $addr->address($addr);
last;