From: Harry Putnam <reader@newsguy.com>
Subject: Summary format - the `u' spec
Date: 04 Mar 2001 08:21:59 -0800 [thread overview]
Message-ID: <m3hf19ld2y.fsf@gnus.cvs.983032537> (raw)
The following message is a courtesy copy of an article
that has been posted to gnu.emacs.gnus as well.
>From gnus info; this looks like it can be made to do what I want.
`u'
User defined specifier. The next character in the format string
should be a letter. Gnus will call the function
`gnus-user-format-function-'`X', where `X' is the letter following
`%u'. The function will be passed the current header as argument.
The function should return a string, which will be inserted into
the summary just like information from any other summary specifier.
Hopefully I'm, correct in thinking the line that says:
"...The function will be passed the current header as argument."
Means that all header lines get scanned.
I want to use this option to cause gnus to scan the headers for
this pattern `^Keywords: \\[A\\] '. And if found, to insert the capital
letter found inside the [] into th summary display.
I think this is fairly simple, maybe but don't really have a clue how
to proceed.
Does someone have an example of using this function in the way I
described?
next reply other threads:[~2001-03-04 16:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-04 16:21 Harry Putnam [this message]
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
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=m3hf19ld2y.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).