Gnus development mailing list
 help / color / mirror / Atom feed
From: Pavel@Janik.cz (Pavel Janík ml.)
Cc: ding@gnus.org
Subject: Re: Summary format - the `u' spec
Date: 04 Mar 2001 22:21:24 +0100	[thread overview]
Message-ID: <m3hf19z0vf.fsf@SnowWhite.Janik.cz> (raw)
In-Reply-To: <m3hf19ld2y.fsf@gnus.cvs.983032537>

   From: Harry Putnam <reader@newsguy.com>
   Date: 04 Mar 2001 08:21:59 -0800

Hi Harry,

   > 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?

yes. I use something similar. This is workaround for tags which rmail can
do and gnus can not (it is already in the wish list). If the mail has
X-Annotations: header, the rest of the line is displayed in the summary:

(setq gnus-extra-headers '(To Cc X-Annotations))
(setq nnmail-extra-headers gnus-extra-headers)

(defun gnus-user-format-function-X (header)
  "My user-defined function for annotations."
  (let ((my-extra-headers (mail-header-extra gnus-tmp-header)))
    ; Search for X-Annotations
    (while (and my-extra-headers (not (eq (car (car my-extra-headers)) 'X-Annotations)))
      (setq my-extra-headers (cdr my-extra-headers)))
    (setq my-extra-headers (cdr (car my-extra-headers)))
    (if my-extra-headers
        (concat "{" (rfc2047-decode-string my-extra-headers) "} ")
      "")))

Tested, I use it almost everyday.

Hmm, isn't this the time where we should implement this? There are at least
three people who want it :-)
-- 
Pavel Janík ml.
Pavel@Janik.cz
http://www.janik.cz



      parent reply	other threads:[~2001-03-04 21:21 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
2001-03-05  9:29       ` Kai Großjohann
2001-03-04 21:21 ` Pavel Janík ml. [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=m3hf19z0vf.fsf@SnowWhite.Janik.cz \
    --to=pavel@janik.cz \
    --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).