From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/23793 Path: main.gmane.org!not-for-mail From: Graham Todd Newsgroups: gmane.emacs.gnus.general Subject: Limit to recipient? Date: Sun, 04 Jul 1999 18:58:24 GMT Organization: SunSITE Denmark (sunsite.auc.dk) Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035161463 3964 80.91.224.250 (21 Oct 2002 00:51:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:51:03 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id RAA27280 for ; Sun, 4 Jul 1999 17:01:26 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id OAB27230; Sun, 4 Jul 1999 14:01:20 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 04 Jul 1999 14:00:01 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id NAA24981 for ; Sun, 4 Jul 1999 13:59:51 -0500 (CDT) Original-Received: from sunsite.auc.dk (sunsite.auc.dk [130.225.51.30]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id OAA26099 for ; Sun, 4 Jul 1999 14:58:37 -0400 (EDT) Original-Received: (qmail 23800 invoked by uid 509); 4 Jul 1999 18:58:25 -0000 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: emacs.ding User-Agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) XEmacs/20.4 (Emerald) Original-Lines: 37 Original-NNTP-Posting-Host: 206.172.12.232 Original-X-Complaints-To: news@sunsite.auc.dk Original-X-Trace: sunsite.auc.dk 931114704 206.172.12.232 (Sun, 04 Jul 1999 20:58:24 MET DST) Original-NNTP-Posting-Date: Sun, 04 Jul 1999 20:58:24 MET DST Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:23793 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:23793 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