Gnus development mailing list
 help / color / mirror / Atom feed
From: Colin Rafferty <craffert@ms.com>
Subject: Re: Displaying strange headers strangely?
Date: 10 Feb 1999 11:13:01 -0500	[thread overview]
Message-ID: <vgvn22m2q5u.fsf@ms.com> (raw)
In-Reply-To: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "10 Feb 1999 16:07:14 +0100"

Kai Grossjohann writes:

> Can I make it so that messages with an "X-yzzy: a" header show up with
> a "1" in the Summary buffer, and messages with an "X-yzzy: b" header
> show up with "2"?

I assume you mean that you would like some actual text in the Summary
buffer to have the string "1" or "2".

There are only three things that you have to do for this:

1. Make sure that the X-yzzy field is being put in .overview.  If it's
   not by default, then add it to `nnmail-extra-headers'.

2. Create a new function `gnus-user-format-function-y' that looks at
   the X-yzzy header, and outputs "1" or "2".

3. Add %uz to wherever in `gnus-summary-line-format' you want it.

> I would like to frob the display in the article buffer, to.  Maybe
> display the former as "Priority: yes" and the latter as "Priority:
> no"? 

I guess you could do something in the `gnus-article-prepare-hook'.

Of course, you could also mess with the message itself somewhere in
the processing before it gets into Gnus in the first place.

-- 
Colin


      reply	other threads:[~1999-02-10 16:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-10 15:07 Kai.Grossjohann
1999-02-10 16:13 ` Colin Rafferty [this message]

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=vgvn22m2q5u.fsf@ms.com \
    --to=craffert@ms.com \
    /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).