aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorFoo2016-02-08 13:28:37 +1100
committerLars Ingebrigtsen2016-02-08 13:28:37 +1100
commit357ae5dba5faac5ff48ebb971cb29500f87f02a6 (patch)
tree97fc02b211a7ac17899c28df8ef7a8e0f88e7f72 /doc/misc
parentd0c29576099b02ba75c2458f4c3ac175d1ba9250 (diff)
downloademacs-357ae5dba5faac5ff48ebb971cb29500f87f02a6.tar.gz
emacs-357ae5dba5faac5ff48ebb971cb29500f87f02a6.zip
Allow various Gnus and Message address variables to be functions
* doc/misc/gnus.texi (To From Newsgroups): gnus-ignored-from-addresses can be a function. * doc/misc/message.texi (Wide Reply): message-dont-reply-to-names can be a function. * lisp/gnus/gnus-icalendar.el (gnus-icalendar-identities): message-alternative-emails can be a function. * lisp/gnus/gnus-notifications.el (gnus-notifications): message-alternative-emails can be a function (bug#22315). * lisp/gnus/gnus-sum.el (gnus-summary-from-or-to-or-newsgroups): gnus-ignored-from-addresses can be a function (bug#22315).
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/gnus.texi11
-rw-r--r--doc/misc/message.texi13
2 files changed, 13 insertions, 11 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 8dd0c1ba9d5..e6e3e7617ee 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -5042,11 +5042,12 @@ access the @code{X-Newsreader} header:
5042 5042
5043@item 5043@item
5044@vindex gnus-ignored-from-addresses 5044@vindex gnus-ignored-from-addresses
5045The @code{gnus-ignored-from-addresses} variable says when the @samp{%f} 5045The @code{gnus-ignored-from-addresses} variable says when the
5046summary line spec returns the @code{To}, @code{Newsreader} or 5046@samp{%f} summary line spec returns the @code{To}, @code{Newsreader}
5047@code{From} header. If this regexp matches the contents of the 5047or @code{From} header. The variable may be a regexp or a predicate
5048@code{From} header, the value of the @code{To} or @code{Newsreader} 5048function. If this matches the contents of the @code{From}
5049headers are used instead. 5049header, the value of the @code{To} or @code{Newsreader} headers are
5050used instead.
5050 5051
5051To distinguish regular articles from those where the @code{From} field 5052To distinguish regular articles from those where the @code{From} field
5052has been swapped, a string is prefixed to the @code{To} or 5053has been swapped, a string is prefixed to the @code{To} or
diff --git a/doc/misc/message.texi b/doc/misc/message.texi
index 761fb772f46..fa4fa4398b4 100644
--- a/doc/misc/message.texi
+++ b/doc/misc/message.texi
@@ -185,8 +185,9 @@ but you can change the behavior to suit your needs by fiddling with the
185 185
186@vindex message-dont-reply-to-names 186@vindex message-dont-reply-to-names
187Addresses that match the @code{message-dont-reply-to-names} regular 187Addresses that match the @code{message-dont-reply-to-names} regular
188expression (or list of regular expressions) will be removed from the 188expression (or list of regular expressions or a predicate function)
189@code{Cc} header. A value of @code{nil} means exclude your name only. 189will be removed from the @code{Cc} header. A value of @code{nil} means
190exclude your name only.
190 191
191@vindex message-prune-recipient-rules 192@vindex message-prune-recipient-rules
192@code{message-prune-recipient-rules} is used to prune the addresses 193@code{message-prune-recipient-rules} is used to prune the addresses
@@ -1672,10 +1673,10 @@ trailing old subject. In this case,
1672 1673
1673@item message-alternative-emails 1674@item message-alternative-emails
1674@vindex message-alternative-emails 1675@vindex message-alternative-emails
1675Regexp matching alternative email addresses. The first address in the 1676Regexp or predicate function matching alternative email addresses.
1676To, Cc or From headers of the original article matching this variable is 1677The first address in the To, Cc or From headers of the original
1677used as the From field of outgoing messages, replacing the default From 1678article matching this variable is used as the From field of outgoing
1678value. 1679messages, replacing the default From value.
1679 1680
1680For example, if you have two secondary email addresses john@@home.net 1681For example, if you have two secondary email addresses john@@home.net
1681and john.doe@@work.com and want to use them in the From field when 1682and john.doe@@work.com and want to use them in the From field when