diff options
| author | Paul Nelson | 2026-02-21 17:28:58 +0100 |
|---|---|---|
| committer | Eli Zaretskii | 2026-02-21 19:30:25 +0200 |
| commit | ab4be3cc1ff2fde6b4d9f72d877cc62d6f836d1d (patch) | |
| tree | 3bdf5f3b2af7e33d4e138e48599629e5ffe06d28 /doc | |
| parent | f3555fc846e536cd038f47177356a98a4ee06a20 (diff) | |
| download | emacs-ab4be3cc1ff2fde6b4d9f72d877cc62d6f836d1d.tar.gz emacs-ab4be3cc1ff2fde6b4d9f72d877cc62d6f836d1d.zip | |
Make Rmail summary address display customizable
* lisp/mail/rmailsum.el (rmail-summary-sender-function)
(rmail-summary-recipient-function, rmail-summary-address-width):
New user options.
(rmail-summary--address-display, rmail-summary-name-or-address)
(rmail-summary-recipient-strip-quoted-names)
(rmail-summary-recipient-names): New functions.
(rmail-header-summary): Use them when formatting sender and
recipient fields (bug#80406).
* doc/emacs/rmail.texi (Rmail Make Summary): Document them.
* test/lisp/mail/rmailsum-tests.el: New file.
(rmailsum-tests-name-or-address-prefers-name)
(rmailsum-tests-name-or-address-fallback-to-address)
(rmailsum-tests-recipient-strip-quoted-names-first-line)
(rmailsum-tests-recipient-names-folded)
(rmailsum-tests-recipient-names-fallback-to-address): New tests.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/rmail.texi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/emacs/rmail.texi b/doc/emacs/rmail.texi index 987fe3a55d4..d82cd177fa6 100644 --- a/doc/emacs/rmail.texi +++ b/doc/emacs/rmail.texi | |||
| @@ -1001,6 +1001,22 @@ use for the summary window. The variable | |||
| 1001 | for a message should include the line count of the message. Setting | 1001 | for a message should include the line count of the message. Setting |
| 1002 | this option to @code{nil} might speed up the generation of summaries. | 1002 | this option to @code{nil} might speed up the generation of summaries. |
| 1003 | 1003 | ||
| 1004 | @vindex rmail-summary-sender-function | ||
| 1005 | @vindex rmail-summary-recipient-function | ||
| 1006 | Rmail formats the sender and recipient fields in summary lines using | ||
| 1007 | the options @code{rmail-summary-sender-function} and | ||
| 1008 | @code{rmail-summary-recipient-function}. For senders, the possible | ||
| 1009 | values include showing the address (the default), or showing the sender | ||
| 1010 | name with fallback to the address. For recipients, the possible values | ||
| 1011 | include showing addresses from the first line of the @samp{To:} field | ||
| 1012 | (the default), showing the first recipient name with fallback to | ||
| 1013 | address, or showing all recipient names with fallback to addresses. | ||
| 1014 | Both options can also be set to a custom function. | ||
| 1015 | |||
| 1016 | @vindex rmail-summary-address-width | ||
| 1017 | The option @code{rmail-summary-address-width} controls the width of | ||
| 1018 | those fields. | ||
| 1019 | |||
| 1004 | @node Rmail Summary Edit | 1020 | @node Rmail Summary Edit |
| 1005 | @subsection Editing in Summaries | 1021 | @subsection Editing in Summaries |
| 1006 | 1022 | ||