From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.7 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 777F920300; Tue, 12 Apr 2016 21:18:24 +0000 (UTC) Date: Tue, 12 Apr 2016 21:18:24 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 5/3] import: filter out [<>] from user names Message-ID: <20160412211824.GA20034@dcvr.yhbt.net> References: <20160409091457.14741-1-e@80x24.org> <20160409091457.14741-4-e@80x24.org> <20160411052049.GA26650@dcvr.yhbt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160411052049.GA26650@dcvr.yhbt.net> List-Id: It confuses the git ident parser and may not be a great idea to fix in git since it could break interopability with older versions. --- lib/PublicInbox/Import.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 5bae69d..7073c3d 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -139,6 +139,12 @@ sub add { my $mid = mid_mime($mime); my $path = mid2path($mid); + # git gets confused with: + # "'A U Thor ' via foo" + # ref: + # + $name =~ s/<([^>]+)>/($1)/g; + my ($r, $w) = $self->gfi_start; my $tip = $self->{tip}; if ($tip ne '') { -- EW