diff options
| author | Sean Whitton | 2022-03-17 11:57:14 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-03-17 11:57:14 +0100 |
| commit | da0d598190c3337c4acb2adb7435b756c655af87 (patch) | |
| tree | 35e58a13dd7e451ad26ccfbf38e53cfc16564091 | |
| parent | 1d3b7474c7d79ae5f38b5dcb7a44f4975b3e79e8 (diff) | |
| download | emacs-da0d598190c3337c4acb2adb7435b756c655af87.tar.gz emacs-da0d598190c3337c4acb2adb7435b756c655af87.zip | |
Don't use the original sender's address as the envelope-from
* lisp/gnus/message.el (message-resend): Avoid setting the
envelope-from to the original sender's address rather than the
resender's (bug#54429).
| -rw-r--r-- | lisp/gnus/message.el | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 2e9242d3e1e..30734b8f1ad 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -50,6 +50,7 @@ | |||
| 50 | (require 'subr-x) | 50 | (require 'subr-x) |
| 51 | (require 'yank-media) | 51 | (require 'yank-media) |
| 52 | (require 'mailcap) | 52 | (require 'mailcap) |
| 53 | (require 'sendmail) | ||
| 53 | 54 | ||
| 54 | (autoload 'mailclient-send-it "mailclient") | 55 | (autoload 'mailclient-send-it "mailclient") |
| 55 | 56 | ||
| @@ -8016,7 +8017,18 @@ is for the internal use." | |||
| 8016 | (select-safe-coding-system-function nil) | 8017 | (select-safe-coding-system-function nil) |
| 8017 | message-required-mail-headers | 8018 | message-required-mail-headers |
| 8018 | message-generate-hashcash | 8019 | message-generate-hashcash |
| 8019 | rfc2047-encode-encoded-words) | 8020 | rfc2047-encode-encoded-words |
| 8021 | ;; If `message-sendmail-envelope-from' is `header' then | ||
| 8022 | ;; the envelope-from will be the original sender's | ||
| 8023 | ;; address, not the resender's. But when resending, the | ||
| 8024 | ;; envelope-from should be the resender's address. Defuse | ||
| 8025 | ;; that particular case. | ||
| 8026 | (message-sendmail-envelope-from | ||
| 8027 | (and (not (and (eq message-sendmail-envelope-from | ||
| 8028 | 'obey-mail-envelope-from) | ||
| 8029 | (eq mail-envelope-from 'header))) | ||
| 8030 | (not (eq message-sendmail-envelope-from 'header)) | ||
| 8031 | message-sendmail-envelope-from))) | ||
| 8020 | (message-send-mail)) | 8032 | (message-send-mail)) |
| 8021 | (when gcc | 8033 | (when gcc |
| 8022 | (message-goto-eoh) | 8034 | (message-goto-eoh) |