aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Nelson2026-02-21 17:28:58 +0100
committerEli Zaretskii2026-02-21 19:30:25 +0200
commitab4be3cc1ff2fde6b4d9f72d877cc62d6f836d1d (patch)
tree3bdf5f3b2af7e33d4e138e48599629e5ffe06d28 /doc
parentf3555fc846e536cd038f47177356a98a4ee06a20 (diff)
downloademacs-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.texi16
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
1001for a message should include the line count of the message. Setting 1001for a message should include the line count of the message. Setting
1002this option to @code{nil} might speed up the generation of summaries. 1002this 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
1007the options @code{rmail-summary-sender-function} and
1008@code{rmail-summary-recipient-function}. For senders, the possible
1009values include showing the address (the default), or showing the sender
1010name with fallback to the address. For recipients, the possible values
1011include showing addresses from the first line of the @samp{To:} field
1012(the default), showing the first recipient name with fallback to
1013address, or showing all recipient names with fallback to addresses.
1014Both 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
1018those fields.
1019
1004@node Rmail Summary Edit 1020@node Rmail Summary Edit
1005@subsection Editing in Summaries 1021@subsection Editing in Summaries
1006 1022