yeti <
[email protected]ute> writes:
Zaichuan Du <[email protected]> writes:
The "formal" signature in the first list applies, while the "casual" one
in the second does not. Any ideas?
#+begin_src elisp
(setq gnus-posting-styles
'( ;; first list
(".*"
^^^^^
I only use such matches for protocols, servers and groups ...
Oh, yes, this first string in the list ".*" is indeed used to match gnus groups. I just did not notice it when first looked into the manual.
(signature-file "formal"))
;; second list
((header "Newsgroups" "comp.emacs")
^^^^^^^
... and assume that above ~(header ...)~ just would pre-set
the header "Newsgroups:" to "comp.emacs" instead of matching it.
I guess I understood this. If the first element is not a string, but a
form like (header MATCH REG), this will try to match the header of the underlying article in the summary buffer.
Thus, the latter one only works in the summary buffer, but not the group buffer. That is why it worked when I replied to news, but failed in
directly posting one.
Can you try ~(":comp\\.emacs$"~ instead?
The following works for me.
#+begin_src elisp
(setq gnus-posting-styles
'((".*"
(signature-file "formal"))
("comp.emacs"
(name "NAME")
(signature-file "casual"))))
#+end_src
Thanks!
--
Zaichuan
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)