all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Francesco Potortì" <pot@gnu.org>
Cc: 47616@debbugs.gnu.org
Subject: bug#47616: 27.1; hardening mail-envelope-from
Date: Thu, 06 May 2021 12:22:53 +0200	[thread overview]
Message-ID: <87h7jgxite.fsf@gnus.org> (raw)
In-Reply-To: <87v98z60u4.fsf@tucano.isti.cnr.it> ("Francesco Potortì"'s message of "Tue, 06 Apr 2021 14:42:41 +0200")

Francesco Potortì <pot@gnu.org> writes:

> Hardening mail-envelope-from from sendmail.el by narrowing to the
> headers, as the doc says, corrects the problem that I observed.

Thanks -- I don't think we should change mail-envelope-from itself here,
because it may conceivably be called from other contexts.  Instead the
callers in sendmail/smtpmail should be altered to narrow to the headers
before calling it, and I've now done this in Emacs 28.  (This uncovered
a similar bug in smtpmail.el, too.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2021-05-06 10:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-06 12:42 bug#47616: 27.1; hardening mail-envelope-from Francesco Potortì
2021-04-07 15:05 ` Francesco Potortì
2021-05-06 10:22 ` Lars Ingebrigtsen [this message]
2021-05-06 12:16   ` Francesco Potortì
2021-05-07 11:17     ` Lars Ingebrigtsen
2021-05-07 11:33       ` Eli Zaretskii
2021-05-07 12:09         ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7jgxite.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=47616@debbugs.gnu.org \
    --cc=pot@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.