diff options
| author | Eli Zaretskii | 2024-10-04 16:32:13 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-10-04 16:32:13 +0300 |
| commit | d656be9794dcce02fb0b2ac3f5a955ddbe57040d (patch) | |
| tree | c83980aef6558241bb635dc8a63c50b33c6cb513 | |
| parent | e9dcf0c57ddea6a3ac3136e82cdb740326e735d4 (diff) | |
| download | emacs-d656be9794dcce02fb0b2ac3f5a955ddbe57040d.tar.gz emacs-d656be9794dcce02fb0b2ac3f5a955ddbe57040d.zip | |
Expand email abbrevs in X-Debbugs-Cc header.
* lisp/mail/mailabbrev.el (mail-abbrev-mode-regexp):
* lisp/mail/mailalias.el (mail-address-field-regexp)
(mail-complete-alist): Add "X-Debbugs-Cc" to headers where email
aliases should be expanded, for compatibility with emacsbug.el.
| -rw-r--r-- | lisp/mail/mailabbrev.el | 2 | ||||
| -rw-r--r-- | lisp/mail/mailalias.el | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el index c8006294a7d..16e9d6f1bea 100644 --- a/lisp/mail/mailabbrev.el +++ b/lisp/mail/mailabbrev.el | |||
| @@ -410,7 +410,7 @@ with a space." | |||
| 410 | ;;; Syntax tables and abbrev-expansion | 410 | ;;; Syntax tables and abbrev-expansion |
| 411 | 411 | ||
| 412 | (defcustom mail-abbrev-mode-regexp | 412 | (defcustom mail-abbrev-mode-regexp |
| 413 | "^\\(Resent-\\)?\\(To\\|From\\|Cc\\|Bcc\\|Reply-To\\):" | 413 | "^\\(Resent-\\)?\\(To\\|From\\|Cc\\|Bcc\\|Reply-To\\|X-Debbugs-Cc\\):" |
| 414 | "Regexp matching mail headers in which mail abbrevs should be expanded. | 414 | "Regexp matching mail headers in which mail abbrevs should be expanded. |
| 415 | This string will be handed to `looking-at' with point at the beginning | 415 | This string will be handed to `looking-at' with point at the beginning |
| 416 | of the current line; if it matches, abbrev mode will be turned on, otherwise | 416 | of the current line; if it matches, abbrev mode will be turned on, otherwise |
diff --git a/lisp/mail/mailalias.el b/lisp/mail/mailalias.el index cce2fcb104d..ca4ff67a6ac 100644 --- a/lisp/mail/mailalias.el +++ b/lisp/mail/mailalias.el | |||
| @@ -50,7 +50,7 @@ | |||
| 50 | When t this still needs to be initialized.") | 50 | When t this still needs to be initialized.") |
| 51 | 51 | ||
| 52 | (defvar mail-address-field-regexp | 52 | (defvar mail-address-field-regexp |
| 53 | "^\\(Resent-\\)?\\(To\\|From\\|Cc\\|Bcc\\|Reply-To\\):") | 53 | "^\\(Resent-\\)?\\(To\\|From\\|Cc\\|Bcc\\|Reply-To\\|X-Debbugs-Cc\\):") |
| 54 | 54 | ||
| 55 | ;; `pattern' is bound dynamically before evaluating the forms in | 55 | ;; `pattern' is bound dynamically before evaluating the forms in |
| 56 | ;; `mail-complete-alist' and may be part of user customizations of | 56 | ;; `mail-complete-alist' and may be part of user customizations of |
| @@ -61,7 +61,7 @@ When t this still needs to be initialized.") | |||
| 61 | (defcustom mail-complete-alist | 61 | (defcustom mail-complete-alist |
| 62 | ;; Don't refer to mail-address-field-regexp here; | 62 | ;; Don't refer to mail-address-field-regexp here; |
| 63 | ;; that confuses some things such as cus-dep.el. | 63 | ;; that confuses some things such as cus-dep.el. |
| 64 | '(("^\\(Resent-\\)?\\(To\\|From\\|Cc\\|Bcc\\|Reply-To\\):" | 64 | '(("^\\(Resent-\\)?\\(To\\|From\\|Cc\\|Bcc\\|Reply-To\\|X-Debbugs-Cc\\):" |
| 65 | . (mail-get-names pattern)) | 65 | . (mail-get-names pattern)) |
| 66 | ("Newsgroups:" . (if (boundp 'gnus-active-hashtb) | 66 | ("Newsgroups:" . (if (boundp 'gnus-active-hashtb) |
| 67 | gnus-active-hashtb | 67 | gnus-active-hashtb |