diff options
| author | Albert Krewinkel | 2014-07-18 08:23:49 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2014-07-18 08:23:49 +0000 |
| commit | 32a608307c53bd8bb1e29015bc36438f0ff0c572 (patch) | |
| tree | 060e684462501f40f081bf4638ba73e98c0eae2c /doc | |
| parent | 0e6040770c6d7c819f985e1a665dce3e78751480 (diff) | |
| download | emacs-32a608307c53bd8bb1e29015bc36438f0ff0c572.tar.gz emacs-32a608307c53bd8bb1e29015bc36438f0ff0c572.zip | |
* lisp/gnus/gnus-msg.el (gnus-configure-posting-style):
Allow string replacements in values when matching against a header.
* doc/misc/gnus.texi (Posting Styles): Document the possibility to
perform string replacements when matching against headers.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/gnus.texi | 14 |
2 files changed, 15 insertions, 4 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 44c2272a63d..d78543183df 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-07-18 Albert Krewinkel <albert+gnus@zeitkraut.de> | ||
| 2 | |||
| 3 | * gnus.texi (Posting Styles): Document the possibility to perform | ||
| 4 | string replacements when matching against headers. | ||
| 5 | |||
| 1 | 2014-07-09 Stephen Berman <stephen.berman@gmx.net> | 6 | 2014-07-09 Stephen Berman <stephen.berman@gmx.net> |
| 2 | 7 | ||
| 3 | * todo-mode.texi (Levels of Organization): Comment out statement | 8 | * todo-mode.texi (Levels of Organization): Comment out statement |
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index f77fd20dbf2..80c1cc2ef03 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -12813,10 +12813,12 @@ variable, which is a vector of the following headers: number subject | |||
| 12813 | from date id references chars lines xref extra. | 12813 | from date id references chars lines xref extra. |
| 12814 | 12814 | ||
| 12815 | In the case of a string value, if the @code{match} is a regular | 12815 | In the case of a string value, if the @code{match} is a regular |
| 12816 | expression, a @samp{gnus-match-substitute-replacement} is proceed on | 12816 | expression, or if it takes the form @code{(header @var{match} |
| 12817 | the value to replace the positional parameters @samp{\@var{n}} by the | 12817 | @var{regexp})}, a @samp{gnus-match-substitute-replacement} is proceed |
| 12818 | corresponding parenthetical matches (see @xref{Replacing Match,, | 12818 | on the value to replace the positional parameters @samp{\@var{n}} by |
| 12819 | Replacing the Text that Matched, elisp, The Emacs Lisp Reference Manual}.) | 12819 | the corresponding parenthetical matches (see @xref{Replacing Match,, |
| 12820 | Replacing the Text that Matched, elisp, The Emacs Lisp Reference | ||
| 12821 | Manual}.) | ||
| 12820 | 12822 | ||
| 12821 | @vindex message-reply-headers | 12823 | @vindex message-reply-headers |
| 12822 | 12824 | ||
| @@ -12848,6 +12850,10 @@ So here's a new example: | |||
| 12848 | ;; @r{If I'm replying to Larsi, set the Organization header.} | 12850 | ;; @r{If I'm replying to Larsi, set the Organization header.} |
| 12849 | ((header "from" "larsi.*org") | 12851 | ((header "from" "larsi.*org") |
| 12850 | (Organization "Somewhere, Inc.")) | 12852 | (Organization "Somewhere, Inc.")) |
| 12853 | ;; @r{Reply to a message from the same subaddress the message} | ||
| 12854 | ;; @r{was sent to.} | ||
| 12855 | ((header "x-original-to" "me\\(\\+.+\\)@@example.org") | ||
| 12856 | (address "me\\1@@example.org")) | ||
| 12851 | ((posting-from-work-p) ;; @r{A user defined function} | 12857 | ((posting-from-work-p) ;; @r{A user defined function} |
| 12852 | (signature-file "~/.work-signature") | 12858 | (signature-file "~/.work-signature") |
| 12853 | (address "user@@bar.foo") | 12859 | (address "user@@bar.foo") |