* Evaluation of `gnus-message-archive-group' vs. `gnus-posting-styles'
@ 2009-07-20 14:09 Ludovic Courtès
0 siblings, 0 replies; only message in thread
From: Ludovic Courtès @ 2009-07-20 14:09 UTC (permalink / raw)
To: ding
Hello,
I wanted to have the following archival setup:
--8<---------------cut here---------------start------------->8---
(setq gnus-message-archive-group
'((let ((from (message-fetch-field "From")))
(cond ((string-match "ludo@gnu\\.org" from)
"Sent-gnu")
(t
"Sent")))))
--8<---------------cut here---------------end--------------->8---
However, it doesn't work as expected because `gnus-posting-styles'
(which changes the `From:' header) hasn't yet been taken into account at
the time `gnus-message-archive-group' is evaluated.
AFAICS this is due to the order in which the relevant hooks are added in
`gnus-setup-message'.
IMO the order should be changed so that `gnus-posting-styles' is honored
before `gnus-message-archive-group', and the documentation should make
it explicit.
What do you think?
Thanks,
Ludo'.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-20 14:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-20 14:09 Evaluation of `gnus-message-archive-group' vs. `gnus-posting-styles' Ludovic Courtès
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).