projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae7dcba
)
Avoid error when forwarding messages from Rmail
author
Nicolas Graner
<nicolas@graner.name>
Thu, 3 Nov 2022 21:49:43 +0000
(22:49 +0100)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 5 Nov 2022 12:01:19 +0000
(14:01 +0200)
* lisp/gnus/message.el (message-mail): Verify that In-Reply-To has
a string value before matching it with a regexp. (Bug#59007)
lisp/gnus/message.el
patch
|
blob
|
history
diff --git
a/lisp/gnus/message.el
b/lisp/gnus/message.el
index 24cba97718a0dd6e77c2b545fbf03ad0fe0dea5f..3bbd68bdcd7e9473c79da50158298bb3ae17b515 100644
(file)
--- a/
lisp/gnus/message.el
+++ b/
lisp/gnus/message.el
@@
-7034,6
+7034,7
@@
is a function used to switch to and display the mail buffer."
;; Firefox sends us In-Reply-To headers that are Message-IDs
;; without <> around them. Fix that.
(when (and (eq (car h) 'In-Reply-To)
+ (stringp (cdr h))
;; Looks like a Message-ID.
(string-match-p "\\`[^ @]+@[^ @]+\\'" (cdr h))
(not (string-match-p "\\`<.*>\\'" (cdr h))))