From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cgf.cx (external.cgf.cx [107.170.62.102]) by sourceware.org (Postfix) with ESMTP id 049983893658; Wed, 29 Apr 2020 16:25:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 049983893658 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 cgf.cx B537D40BAC X-Spam-Level: X-Spam-CGF-Status: No, score=-5.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, TXREP autolearn=ham autolearn_force=no version=3.4.4 spammy=elegant, peoples, H*r:unknown, popular Date: Wed, 29 Apr 2020 12:25:22 -0400 From: Christopher Faylor To: Florian Weimer Cc: overseers@sourceware.org, libc-alpha@sourceware.org Subject: Re: Early blind copy for libc-alpha Message-ID: <20200429162522.GA9508@cgf.cx> Mail-Followup-To: Florian Weimer , overseers@sourceware.org, libc-alpha@sourceware.org References: <87y2qeejd2.fsf@mid.deneb.enyo.de> <20200429142437.GA15920@cgf.cx> <87h7x2bc3l.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87h7x2bc3l.fsf@mid.deneb.enyo.de> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Status: No, score=-102.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, USER_IN_WHITELIST autolearn=no autolearn_force=no version=3.4.2 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2020 16:25:27 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Apr 29, 2020 at 04:28:14PM +0200, Florian Weimer wrote: >* Christopher Faylor: >> On Wed, Apr 29, 2020 at 11:23:05AM +0200, Florian Weimer wrote: >>>Would it be possible to get an early copy of messages sent to >>> before they go into Mailman? >>> >>>It will help those of us who apply patches on other people's behalf, >>>without having to undo the Mailman mangling first. >> >> What specifically is mailman doing to the email you receive? > >The From: header contains the list address, not the patch author, >so feeding the message into “git am” produces an incorrect commit. I just did a google search for "git am" "dmarc" and see that this pain point has been around since DMARC started becoming popular. I didn't see any solution. It was interesting to see people like John Levine and Theorore T'so weighing in on the issue though. Attached is a simple script which will rewrite the headers so that From: is no longer munged. I assume that this could be used as a front-end for "git am". This relies on the fact that we have mailman set up to Cc: the original email sender when the address is munged. I'm providing this as-is after 15 minutes of work. There are probably more elegant ways to accomplish the same task but at least the script is short. --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=undmarc #!/bin/sh t=/tmp/$$.eml cat > $t # e.g., From: Christopher Faylor via Test-list from=$(sed -nre 's/^From: (.*) via .* <.*$/\1/p' $t) # e.g., Cc: Christopher Faylor cc=$(sed -nre "s/^Cc: ($from "'<.*>).*$/\1/ip' $t) exec < $t rm $t exec sed -e "s/^From:.*/From: $cc/" -e "/[Cc][cC]: $cc.*/d" --envbJBWh7q8WU6mo--