about summary refs log tree commit homepage
path: root/scripts
diff options
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-02-08 03:49:51 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-02-08 03:49:51 +0000
commit5ef48061687e5bea3b871fb07d164738ecef907d (patch)
tree49fa8868f9990732855879856a2af39f4d9483d3 /scripts
parentda1189763600f25802d6054ac3414d799b9367d4 (diff)
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.
Diffstat (limited to 'scripts')
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) {