diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-08 03:49:51 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-08 03:49:51 +0000 |
commit | 5ef48061687e5bea3b871fb07d164738ecef907d (patch) | |
tree | 49fa8868f9990732855879856a2af39f4d9483d3 | |
parent | da1189763600f25802d6054ac3414d799b9367d4 (diff) | |
download | public-inbox-5ef48061687e5bea3b871fb07d164738ecef907d.tar.gz |
The mboxes I got from cregit have two spaces after the email address, while the "git format-patch" output I'm used to dealing with only has one space. It's still a "strict" match in that it checks for something resembling a timestamp, but it relaxes the number of spaces between the email address and date.
-rw-r--r-- | scripts/import_vger_from_mbox | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/import_vger_from_mbox b/scripts/import_vger_from_mbox index 44055ffd..9b3afc88 100644 --- a/scripts/import_vger_from_mbox +++ b/scripts/import_vger_from_mbox @@ -28,7 +28,7 @@ sub do_add ($$) { } # asctime: From example@example.com Fri Jun 23 02:56:55 2000 -my $from_strict = qr/^From \S+ \S+ \S+ +\S+ [^:]+:[^:]+:[^:]+ [^:]+/; +my $from_strict = qr/^From \S+ +\S+ \S+ +\S+ [^:]+:[^:]+:[^:]+ [^:]+/; my $prev = undef; while (defined(my $l = <STDIN>)) { if ($l =~ /$from_strict/o) { |