Gnus development mailing list
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
Subject: Re: Summary format - the `u' spec
Date: 05 Mar 2001 15:59:47 -0800	[thread overview]
Message-ID: <m3snkr6a6k.fsf@gnus.cvs.983032537> (raw)
In-Reply-To: <m2g0gsq6pp.fsf@snail.nowhere.ch> (Alex Schroeder's message of "05 Mar 2001 21:52:18 +0100")

Alex Schroeder <alex@gnu.org> writes:

> How about this (untested):
> 
> (defun gnus-user-format-function-H (header)
>   (let* ((xtra (mail-header-extra header))
> 	 (kw (cdr (assq 'Keywords xtra))))
>     (if (and (stringp kw)
> 	     (string-match "\\[\\([A-Z]\\)\\]" kw))
> 	(match-string 1 kw)
>       " ")))
> 
> This assumes kw gets set correctly, I have never done this
> mail-header-extra stuff, so you're on your own.  :)

Haa... right out of the box this baby works.

Thanks Alex



  reply	other threads:[~2001-03-05 23:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-04 16:21 Harry Putnam
2001-03-04 17:54 ` Kai Großjohann
2001-03-04 21:52   ` Harry Putnam
2001-03-05  0:39     ` Alex Schroeder
2001-03-05  1:07       ` Harry Putnam
2001-03-05 20:52         ` Alex Schroeder
2001-03-05 23:59           ` Harry Putnam [this message]
2001-03-05  9:29       ` Kai Großjohann
2001-03-04 21:21 ` Pavel Janík ml.

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=m3snkr6a6k.fsf@gnus.cvs.983032537 \
    --to=reader@newsguy.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).