diff options
| author | Foo | 2016-02-08 13:28:37 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-08 13:28:37 +1100 |
| commit | 357ae5dba5faac5ff48ebb971cb29500f87f02a6 (patch) | |
| tree | 97fc02b211a7ac17899c28df8ef7a8e0f88e7f72 /doc | |
| parent | d0c29576099b02ba75c2458f4c3ac175d1ba9250 (diff) | |
| download | emacs-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')
| -rw-r--r-- | doc/misc/gnus.texi | 11 | ||||
| -rw-r--r-- | doc/misc/message.texi | 13 |
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 |
| 5045 | The @code{gnus-ignored-from-addresses} variable says when the @samp{%f} | 5045 | The @code{gnus-ignored-from-addresses} variable says when the |
| 5046 | summary 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 | 5047 | or @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} | 5048 | function. If this matches the contents of the @code{From} |
| 5049 | headers are used instead. | 5049 | header, the value of the @code{To} or @code{Newsreader} headers are |
| 5050 | used instead. | ||
| 5050 | 5051 | ||
| 5051 | To distinguish regular articles from those where the @code{From} field | 5052 | To distinguish regular articles from those where the @code{From} field |
| 5052 | has been swapped, a string is prefixed to the @code{To} or | 5053 | has 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 |
| 187 | Addresses that match the @code{message-dont-reply-to-names} regular | 187 | Addresses that match the @code{message-dont-reply-to-names} regular |
| 188 | expression (or list of regular expressions) will be removed from the | 188 | expression (or list of regular expressions or a predicate function) |
| 189 | @code{Cc} header. A value of @code{nil} means exclude your name only. | 189 | will be removed from the @code{Cc} header. A value of @code{nil} means |
| 190 | exclude 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 |
| 1675 | Regexp matching alternative email addresses. The first address in the | 1676 | Regexp or predicate function matching alternative email addresses. |
| 1676 | To, Cc or From headers of the original article matching this variable is | 1677 | The first address in the To, Cc or From headers of the original |
| 1677 | used as the From field of outgoing messages, replacing the default From | 1678 | article matching this variable is used as the From field of outgoing |
| 1678 | value. | 1679 | messages, replacing the default From value. |
| 1679 | 1680 | ||
| 1680 | For example, if you have two secondary email addresses john@@home.net | 1681 | For example, if you have two secondary email addresses john@@home.net |
| 1681 | and john.doe@@work.com and want to use them in the From field when | 1682 | and john.doe@@work.com and want to use them in the From field when |