From: Eric Wong (Contractor, The Linux Foundation) Date: Thu, 8 Feb 2018 03:49:51 +0000 (+0000) Subject: scripts/import_vger_from_mbox: relax From_ line match slightly X-Git-Tag: v1.1.0-pre1~252 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=5ef48061687e5bea3b871fb07d164738ecef907d;p=public-inbox.git scripts/import_vger_from_mbox: relax From_ line match slightly 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. --- 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 = )) { if ($l =~ /$from_strict/o) {