Match mail headers case-insensitively when encoding
* lisp/mail/rfc2047.el (rfc2047-encode-message-header): Bind 'case-fold-search' to t when looking up the encoding method, otherwise a header spelled "CC" is encoded using the wrong method. (Bug#77866)
This commit is contained in:
parent
f5e6f284e9
commit
7d886f214e
1 changed files with 2 additions and 1 deletions
|
@ -265,7 +265,8 @@ Should be called narrowed to the head of the message."
|
|||
(if (= (length charsets) 1)
|
||||
(cons (mm-charset-to-coding-system (car charsets))
|
||||
mm-coding-system-priorities)
|
||||
mm-coding-system-priorities)))
|
||||
mm-coding-system-priorities))
|
||||
(case-fold-search t))
|
||||
(while (setq elem (pop alist))
|
||||
(when (or (and (stringp (car elem))
|
||||
(looking-at (car elem)))
|
||||
|
|
Loading…
Add table
Reference in a new issue