* gnus-posting-styles and nnml-current-group
@ 2000-10-19 17:24 Taso N. Devetzis
2000-10-19 20:59 ` Kai Großjohann
0 siblings, 1 reply; 3+ messages in thread
From: Taso N. Devetzis @ 2000-10-19 17:24 UTC (permalink / raw)
Consider the following:
(setq gnus-posting-styles
'((".*"
(name "Bill Clinton")
(address "clinton@usa.com"))
((and message-this-is-mail (equal nnml-current-group "clinton"))
(address "clinton@usa.com"))
((and message-this-is-mail (equal nnml-current-group "private"))
(address "clinton_private@usa.com"))
))
My intention was to set the headers as appropriate when replying to
messages in the various groups, and for this purpose the variable
works fine.
When I'm in the *Group* buffer, however, and begin composing a new
message, the posting style is set according to the last group I was in
before exiting to the *Group* buffer (/nnml-current-group/ remains
set, as one would expect). I would like the posting style to be
something else in this case (specifically the ".*" default style).
I'm about to hack something up using variables like /current-buffer/
and the like, but thought I'd ask here first.
Thanks.
/taso
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gnus-posting-styles and nnml-current-group
2000-10-19 17:24 gnus-posting-styles and nnml-current-group Taso N. Devetzis
@ 2000-10-19 20:59 ` Kai Großjohann
2000-10-19 21:12 ` Taso N. Devetzis
0 siblings, 1 reply; 3+ messages in thread
From: Kai Großjohann @ 2000-10-19 20:59 UTC (permalink / raw)
Cc: ding
What happens when you check the variable gnus-newsgroup-name rather
than nnml-current-group? You might have to check for different
values, though, such as "nnml:foo" rather than "foo".
kai
--
I like BOTH kinds of music.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gnus-posting-styles and nnml-current-group
2000-10-19 20:59 ` Kai Großjohann
@ 2000-10-19 21:12 ` Taso N. Devetzis
0 siblings, 0 replies; 3+ messages in thread
From: Taso N. Devetzis @ 2000-10-19 21:12 UTC (permalink / raw)
Cc: ding
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 381 bytes --]
works beautifully. you are a genius.
/taso
country AND western?
Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
> What happens when you check the variable gnus-newsgroup-name rather
> than nnml-current-group? You might have to check for different
> values, though, such as "nnml:foo" rather than "foo".
> kai
> --
> I like BOTH kinds of music.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-10-19 21:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-19 17:24 gnus-posting-styles and nnml-current-group Taso N. Devetzis
2000-10-19 20:59 ` Kai Großjohann
2000-10-19 21:12 ` Taso N. Devetzis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).