Gnus development mailing list
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: ding@gnus.org
Subject: Evaluation of `gnus-message-archive-group' vs. `gnus-posting-styles'
Date: Mon, 20 Jul 2009 16:09:01 +0200	[thread overview]
Message-ID: <87y6qj78g2.fsf@gnu.org> (raw)

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'.




                 reply	other threads:[~2009-07-20 14:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y6qj78g2.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).