diff options
| author | Lars Ingebrigtsen | 2019-07-09 19:19:56 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-07-09 19:41:11 +0200 |
| commit | 75af25cba01adbc7ea98d933a1bc7a8b5ffec7f1 (patch) | |
| tree | e3795f947888e1d0354367d3a64cc024c93d96a4 | |
| parent | 7c548a29c0ae4fc754d1c3432ea234d148b70313 (diff) | |
| download | emacs-75af25cba01adbc7ea98d933a1bc7a8b5ffec7f1.tar.gz emacs-75af25cba01adbc7ea98d933a1bc7a8b5ffec7f1.zip | |
Fix alternative-email-as-from with empty To headers in Message
* lisp/gnus/message.el (message-use-alternative-email-as-from):
Don't add a "," at the start of the address if the To header
doesn't exist (bug#34293).
| -rw-r--r-- | lisp/gnus/message.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index fbe8b451401..727bbabcb24 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -8108,7 +8108,13 @@ From headers in the original article." | |||
| 8108 | (emails | 8108 | (emails |
| 8109 | (message-tokenize-header | 8109 | (message-tokenize-header |
| 8110 | (mail-strip-quoted-names | 8110 | (mail-strip-quoted-names |
| 8111 | (mapconcat 'message-fetch-reply-field fields ",")))) | 8111 | (mapconcat |
| 8112 | #'identity | ||
| 8113 | (cl-loop for field in fields | ||
| 8114 | for value = (message-fetch-reply-field field) | ||
| 8115 | when value | ||
| 8116 | collect value) | ||
| 8117 | ",")))) | ||
| 8112 | 8118 | ||
| 8113 | (cond ((functionp message-alternative-emails) | 8119 | (cond ((functionp message-alternative-emails) |
| 8114 | (car (cl-remove-if-not message-alternative-emails emails))) | 8120 | (car (cl-remove-if-not message-alternative-emails emails))) |