Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1002684ybb; Wed, 8 Apr 2020 14:21:46 -0700 (PDT) X-Google-Smtp-Source: APiQypJA0Ehy82k8D3Jyk7MY3aEKiTl8YiqGJcy7Eqs0szNyf9sTTALuMo03UXxcovCvVRSWx4Zi X-Received: by 2002:aca:c54d:: with SMTP id v74mr3934143oif.50.1586380906227; Wed, 08 Apr 2020 14:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586380906; cv=none; d=google.com; s=arc-20160816; b=BG/pHcN7nqD1K9wCDJHgEETRTLcsF1kgGW+JHpJbRm95Uq7mkIrUHOddVf7TiqZQPa YnGpokpgr7JSv/YZaXSQwp58sUehaV/e1y4ypBcN88VIrCq2KJIRLRAK1DTSN9DlWMgC TSyayZZj4p0CVY+JZ6XTWwSfDB3N0zv6/4akBCtzEvhtyjqN9DHSEk/iQz6gx/8ERdVe Ka4HJYsUzFOc8b5ulBpZUKCU6Dwv0eSl08wawv/zY1H1ADIX3Z3wS3Y5ZMrVp5+vMqJI 8nvZ2tapdVedzAjjX/NGD/eLtrcSdeLpCfl3FavpbCTnHQMt/3aMTdNE+GTnrV86cexL 8MaA== 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=ZnfGc3hftLEW2pTy5AL0zQrOz4t6rr8zPmds2nRfSks=; b=nEhqE7EH4qJyQzFfO2gFGARL4zzV5ttLXQECSeVmVnj1rrps4JqgYjn+CEDGl71U5N roNuBSZp8nLLNyuANcGJh2jr4JiidNKCoIvv3HbelrCIjnC+eZZ2BX8KI6/v6Rnk/Zda UtjRfn4+XEu2Vmnk+EhYhx7OU6DDK04FZFePJOhB3GG0UDM2WGtz8cayEzwxfzBZ6qdp erlbWu5Iz+NaPan02CoOQrwPnoTuAD2e+vbCHjbx9wGgTiYRfgdNwQLgdhbrpjwjNhIY PuJwcfSjSDUVO+1AI3k/yT0qk0zsJwVYk2jsSj4+X38jl8jen8ApKhuqeQRXYiY3QCuC M0ZQ== 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 110si3011455otu.45.2020.04.08.14.21.33; Wed, 08 Apr 2020 14:21:46 -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 S1729557AbgDHR2y (ORCPT + 99 others); Wed, 8 Apr 2020 13:28:54 -0400 Received: from cloud.peff.net ([104.130.231.41]:37180 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1730538AbgDHR2y (ORCPT ); Wed, 8 Apr 2020 13:28:54 -0400 Received: (qmail 12314 invoked by uid 109); 8 Apr 2020 17:28:54 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with SMTP; Wed, 08 Apr 2020 17:28:54 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 9630 invoked by uid 111); 8 Apr 2020 17:39:21 -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; Wed, 08 Apr 2020 13:39:21 -0400 Authentication-Results: peff.net; auth=none Date: Wed, 8 Apr 2020 13:28:53 -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: <20200408172853.GA1961925@coredump.intra.peff.net> References: <20200407154046.GA15368@aepfle.de> <20200407170257.GA1844923@coredump.intra.peff.net> <2e6975d606846c834a387c07ee11cdce52356586.camel@perches.com> <20200407174449.GA1884106@coredump.intra.peff.net> <2afc201cea5fd59829ce818041b4290a0ec5bb8c.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2afc201cea5fd59829ce818041b4290a0ec5bb8c.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 02:56:19PM -0700, Joe Perches wrote: > > Syntactically they are rfc822 comments, and send-email _should_ be able > > to handle them (and does in recent versions). > > I'm not certain that comments are allowed _after_ a tld in an > email address. In any case, I guess it's a good thing I used > parentheses for the get_maintainer rolestats block. Oh, it's much more horrible than that. RFC822 contains this example: Muhammed.(I am the greatest) Ali @(the)Vegas.WBA which parses to: Muhammed.Ali@Vegas.WBA Perl's Mail::Address does decipher that correctly. > > > 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. > > I think that slightly unexpected as the name field is not required. TBH, so do I. That's all done by Mail::Address's format() method. We could probably convince it to be less magical, but perhaps it's best to just leave it alone. Presumably that logic has some historical basis, and as you note, it's a mistake to be passing these fields into send-email in the first place. -Peff