Re: reflecting X-NOFFLE-Status in gnus *Summary* buffer

Dan Jacobson <[email protected]> Fri, 10 Sep 2004 04:39:17 +0800
Newsgroups gmane.network.noffle.user
Message-ID <[email protected]>
The following message is a courtesy copy of an article
that has been posted to gnu.emacs.gnus as well.

Y> Y==Yair Friedman ([email protected])

Y> If I understood you you want to change the summary  according to the
Y> presence/absence of X-NOFFLE-Status header. I did something similar for
Y> Importance MS headers my boss uses :)

Y> The basic steps for doing it are:
Y> * adding X-NOFFLE-Status to nnmail-extra-headers
Y> * defining gnus-user-format function that will search this header using
Y>   mail-header-extra and return mark needed.
Y> * adding %u spec in gnus-summary-line-format.

From what I could piece together from the Gnus manual,

(setq gnus-extra-headers
      '(To Newsgroups X-NOFFLE-Status))
(setq gnus-summary-line-format
 (concat  "%U%R%z%I%(%t|%~(cut-left 3)d%~(max-right 2)d%4L|%-20,20f%):%s"
 "%~(form(gnus-extra-header 'X-NOFFLE-Status))@\n"))
(setq nnmail-extra-headers gnus-extra-headers)

should have appended X-NOFFLE-Status to each summary line.
But it doesn't.
Yes X-NOFFLE-Status is in the articles.


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php