Gnus development mailing list
 help / color / mirror / Atom feed
From: Graham Todd <gtodd@yorku.ca>
Subject: Limit to recipient?
Date: Sun, 04 Jul 1999 18:58:24 GMT	[thread overview]
Message-ID: <x6wvwg44qi.fsf@ninga.ellerbeck.org> (raw)


Hi all,

I have this im my ~/.gnus to make the Summary buffers in my sent-mail
archives more meaningful:


(setq gnus-extra-headers
           '(To Newsgroups))
(setq nnmail-extra-headers gnus-extra-headers)
(setq gnus-summary-line-format
          "%U %d%R%z%I%(%[%4L: %-20,20f%]%) %s\n")
(setq gnus-ignored-from-addresses
           "Graham Todd")


I'd like to be able to add a "limit" function something like this:

(defun gnus-summary-limit-to-recipient (????)
  "Limit the summary buffer to articles that were sent to a recipient
  that matches a regexp." 
 (interactive "sLimit to recipient (regexp): ")
  (gnus-summary-limit-to-subject ???? "????"))

but what would I have to substitute for the ???? above. Theres a few
line in gnus-sum.el like this:

(unless (fboundp (intern (concat "mail-header-" header)))
      (error "%s is not a valid header" header))

which seem to prevent gnus-extra-headers like "To" or "Newsgroups"
from being seen as valid headers. How and where could they be defined
as valid headers so a defun like gnus-summary-limit-to-recipient would
work?

-- 
Graham Todd        


             reply	other threads:[~1999-07-04 18:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-04 18:58 Graham Todd [this message]
1999-07-04 20:10 ` Kai.Grossjohann
1999-07-04 21:07   ` Harry Putnam
1999-07-04 21:44     ` Kai.Grossjohann
1999-07-05  4:40     ` Graham Todd
1999-07-05  9:41       ` Kai.Grossjohann
1999-07-06  3:48         ` Lars Magne Ingebrigtsen
2001-09-30 20:33 limit " Amos Gouaux
2001-10-01  0:11 ` Nevin Kapur

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=x6wvwg44qi.fsf@ninga.ellerbeck.org \
    --to=gtodd@yorku.ca \
    /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).