From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#47616: 27.1; hardening mail-envelope-from Date: Fri, 07 May 2021 13:17:27 +0200 Message-ID: <877dkavlmg.fsf@gnus.org> References: <87v98z60u4.fsf@tucano.isti.cnr.it> <87h7jgxite.fsf@gnus.org> <87a6p8ukf6.fsf@tucano.isti.cnr.it> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11712"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47616@debbugs.gnu.org To: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 07 13:18:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1leyUp-0002sE-7s for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 May 2021 13:18:15 +0200 Original-Received: from localhost ([::1]:55236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leyUo-0006jw-B7 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 May 2021 07:18:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leyUc-0006jl-2V for bug-gnu-emacs@gnu.org; Fri, 07 May 2021 07:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59967) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leyUb-0000I6-Qg for bug-gnu-emacs@gnu.org; Fri, 07 May 2021 07:18:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leyUb-0003Op-Mw for bug-gnu-emacs@gnu.org; Fri, 07 May 2021 07:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 May 2021 11:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47616 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 47616-submit@debbugs.gnu.org id=B47616.162038625813058 (code B ref 47616); Fri, 07 May 2021 11:18:01 +0000 Original-Received: (at 47616) by debbugs.gnu.org; 7 May 2021 11:17:38 +0000 Original-Received: from localhost ([127.0.0.1]:43279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leyUD-0003OY-OS for submit@debbugs.gnu.org; Fri, 07 May 2021 07:17:37 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:59250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leyUB-0003OS-Sr for 47616@debbugs.gnu.org; Fri, 07 May 2021 07:17:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=9fBYMv0u+PlELAXhGUBYO6iS/bOHjaDNP3W8QMqXLqc=; b=gKuNzr/ORucFvSydtitZPZn/1q ZYnMeO4XiGAu5Pz5HPWLjhn4Ve79STaQiAE7FX+OUHDPIwGS9vxqt+idqCfOLiZDfNXnskvJYcHdk 1d6PCMnO0rNMQIkAPpbvoLSk/W1bwcu/bIKaYd/H8GRZatcYdx2/yNHwjPUkPubs00F0=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1leyU3-0006kC-Ss; Fri, 07 May 2021 13:17:30 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAAIGNIUk0AAHomAACAhAAA+gAA AIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAMUExURZFsZ76Zl042MP///9rG5v0AAAABYktHRAMR DEzyAAAACXBIWXMAAFxGAABcRgEUlENBAAAAB3RJTUUH5QUHCwwSjDNG/QAAAF50RVh0UmF3IHBy b2ZpbGUgdHlwZSA4YmltAAo4YmltCiAgICAgIDI4CjM4NDI0OTRkMDNlZDAwMDAwMDAwMDAxMDAy NTgwMDAwMDAwMTAwMDEwMjU4MDAwMDAwMDEwMDAxChDG9fMAAAFJSURBVCjPbdDNasJAEAfw6WIl 7ElLc7CnWlqRfQopKnRPaUgEPRfBPsUqCrI3SwvqKQlWNvOUnc33oXtI9sf+Z7IZgHrdNvbAmtBN iMZeIXTo1YqyEoQQwGHGghMC4Ho4KhCOhMnCwiJA41mgxQwjb1PCR+Ub28xCIiY4pHrbjZ6IDtUT PE4HdIIWI4dfEQ3L0d5+U8yGIYCn34DywoK+nMqsR45YSjQFWCyzhjmMwCKGRXGOxsqg/8dWX+vY dnGpYEI/rrALZ2nV2qUZsBIBTWdTYtzx6tYd8CjG6aKCw33X+2hh8DM49V4J7uCCKzk9pALcd/dl jOPP9nm+gF7XXV5w+rA8HxC+Dmwykatd/23u21uLpPELNaJE6UdIIg2cw+b5BmLF9XGlJUQnuFuv E90+Etg+2vc5U0NHUYwKy8GBQSUqICpe4g/cmeV5+ShmDAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAy MS0wNS0wN1QxMToxMjoxOCswMDowMKJgDgoAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDUtMDdU MTE6MTI6MTgrMDA6MDDTPba2AAAAAElFTkSuQmCC X-Now-Playing: Mikel Rouse's _Swingers Castle_: "LA Continental" In-Reply-To: <87a6p8ukf6.fsf@tucano.isti.cnr.it> ("Francesco =?UTF-8?Q?Potort=C3=AC?="'s message of "Thu, 06 May 2021 14:16:29 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:205919 Archived-At: Francesco Potort=C3=AC writes: > That makes sense, in principle. I would argue for adding a comment to > mail-envelope-from stating that since it calls mail-fetch-field it > should be called only after narrowing to the headers. Or maybe even > adding a note in the doc string, as done in mail-fetch-field. Good idea. I've now mentioned this in the doc string in Emacs 28. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no