Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4609080ybb; Tue, 7 Apr 2020 10:47:00 -0700 (PDT) X-Google-Smtp-Source: APiQypKsBWB0iKwO48R9KylQ6Afr+e7L4Z8fL2NLVu6pgQ/PcKjYcCppxRuwxIFwmaCyihKx/F/T X-Received: by 2002:a4a:b141:: with SMTP id e1mr2881369ooo.54.1586281620670; Tue, 07 Apr 2020 10:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586281620; cv=none; d=google.com; s=arc-20160816; b=XUR+y7EaxcExgxUs3qmeXfW52xa26gCo+y5BELq8oVOEY91fwTYKkSamE5PnyBnPkp fRDzTqTrNC6qGooKOr48acw+c3rih9ovWoK+dcnUVIFF5PawuBf032kSdLiBvJ95de4y v3XHhvqE3/Zl37BTxl72rYHz4NrHtyOSyOyjed+Y15TGsnmhnhB6GZ+2786a/j/iTMuF 7zQLfvnH22d+zmeCws0C/L8Rr/wT6fezTx/rXIyNPyuRJKo56I0Xs0YpLNirRLyvIkDO YYUdrOKHFuhRzeh+VY/6bzem/tv1xJT4zwzv9EAml6vuxVWvRJOUK4zb4fr8+0qTfCWO /Ugg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Sskpm6oeHfOUj2zJ4J4PcIX6FVlf6RVw0knLP8fM3K0=; b=lD6mBoWT9C9OisLHPeVXjsXF4TXJWXeQgrl8nq2yieuF6OtUizhtv+EaRQ8cI/OLuY 4qMZdMh3XxSVTAbxlnIDYlRgjdERgGtxGfGhhyi6h2+/x/JczEdv6rAeBkyWAuTRanpl 2jTwv7wTGK/dHzQ41MEzl+bW6Hv6BFnMNCVxzQb59BSyz82UH0E7Olqb+GQjeXgnVgJH 4KCcsh0CHEp1ABgPV3fdW3Tpfv0hYTRDnFgq3C1Ko8LXEQWVyOnSjxJMz8v7SySoKwCq M1lJGXWvo7fx8aZdePG+9QN/+rqAvCHkMEMF14sHgUK882DK1Wv86m0X+lSKyn9O54zb nx5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si57062oog.87.2020.04.07.10.46.46; Tue, 07 Apr 2020 10:47:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726277AbgDGRox (ORCPT + 99 others); Tue, 7 Apr 2020 13:44:53 -0400 Received: from cloud.peff.net ([104.130.231.41]:36090 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726332AbgDGRow (ORCPT ); Tue, 7 Apr 2020 13:44:52 -0400 Received: (qmail 3091 invoked by uid 109); 7 Apr 2020 17:44:50 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with SMTP; Tue, 07 Apr 2020 17:44:50 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 30621 invoked by uid 111); 7 Apr 2020 17:55:14 -0000 Received: from coredump.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Tue, 07 Apr 2020 13:55:14 -0400 Authentication-Results: peff.net; auth=none Date: Tue, 7 Apr 2020 13:44:49 -0400 From: Jeff King To: Joe Perches Cc: Olaf Hering , linux-kernel@vger.kernel.org, git@vger.kernel.org Subject: Re: get_maintainer.pl sends bogus addresses to git send-email Message-ID: <20200407174449.GA1884106@coredump.intra.peff.net> References: <20200407154046.GA15368@aepfle.de> <20200407170257.GA1844923@coredump.intra.peff.net> <2e6975d606846c834a387c07ee11cdce52356586.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2e6975d606846c834a387c07ee11cdce52356586.camel@perches.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 07, 2020 at 10:18:41AM -0700, Joe Perches wrote: > On Tue, 2020-04-07 at 13:02 -0400, Jeff King wrote: > > On Tue, Apr 07, 2020 at 05:40:46PM +0200, Olaf Hering wrote: > > > > > For me sending patches via git send-email fails because email address > > > conversion is failing. Something appends a ')' to x86/lkml@kernel.org. > > > I suspect the double '))' in MAINTAINERS is confusing the command. > > > I tried to send the trivial patch from v5.0 and v5.6 tag. > > > > > > Is this a failure in ./scripts/get_maintainer.pl, > > > or is this something git does internally? > > > I'm sure others use such command on a daily basis, so likely something on > > > my end became broken at some point in the past. > > > > It's a bug in send-email's hand-rolled address parser, which was fixed > > in bd869f67b9 (send-email: add and use a local copy of Mail::Address, > > 2018-01-05). Upgrade to Git v2.17.0 or newer. > > Not really. > You need to add --norolestats on the get_maintainer command line > > git send-email expects bare email addresses, not ones annotated > with additional content. I agree that dropping them from the output is even better, if you'd never want them to be sent. Syntactically they are rfc822 comments, and send-email _should_ be able to handle them (and does in recent versions). > For instance: > > $ ./scripts/get_maintainer.pl -f lib/vsprintf.c > Petr Mladek (maintainer:VSPRINTF) > Steven Rostedt (maintainer:VSPRINTF) > Sergey Senozhatsky (maintainer:VSPRINTF) > Andy Shevchenko (reviewer:VSPRINTF) > Rasmus Villemoes (reviewer:VSPRINTF) In all of these cases send-email will drop the bit in parentheses. > linux-kernel@vger.kernel.org (open list) In this one, I think that the comment will be used as the name field, since there isn't one. -Peff