diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2014-07-18 08:23:49 +0000 |
---|---|---|
committer | Katsumi Yamaoka <yamaoka@jpl.org> | 2014-07-18 08:23:49 +0000 |
commit | 32a608307c53bd8bb1e29015bc36438f0ff0c572 (patch) | |
tree | 060e684462501f40f081bf4638ba73e98c0eae2c /doc/misc/gnus.texi | |
parent | 0e6040770c6d7c819f985e1a665dce3e78751480 (diff) | |
download | emacs-32a608307c53bd8bb1e29015bc36438f0ff0c572.tar.gz |
* 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/misc/gnus.texi')
-rw-r--r-- | doc/misc/gnus.texi | 14 |
1 files changed, 10 insertions, 4 deletions
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 from date id references chars lines xref extra. In the case of a string value, if the @code{match} is a regular -expression, a @samp{gnus-match-substitute-replacement} is proceed on -the value to replace the positional parameters @samp{\@var{n}} by the -corresponding parenthetical matches (see @xref{Replacing Match,, -Replacing the Text that Matched, elisp, The Emacs Lisp Reference Manual}.) +expression, or if it takes the form @code{(header @var{match} +@var{regexp})}, a @samp{gnus-match-substitute-replacement} is proceed +on the value to replace the positional parameters @samp{\@var{n}} by +the corresponding parenthetical matches (see @xref{Replacing Match,, +Replacing the Text that Matched, elisp, The Emacs Lisp Reference +Manual}.) @vindex message-reply-headers @@ -12848,6 +12850,10 @@ So here's a new example: ;; @r{If I'm replying to Larsi, set the Organization header.} ((header "from" "larsi.*org") (Organization "Somewhere, Inc.")) + ;; @r{Reply to a message from the same subaddress the message} + ;; @r{was sent to.} + ((header "x-original-to" "me\\(\\+.+\\)@@example.org") + (address "me\\1@@example.org")) ((posting-from-work-p) ;; @r{A user defined function} (signature-file "~/.work-signature") (address "user@@bar.foo") |