From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35220 Path: main.gmane.org!not-for-mail From: Pavel@Janik.cz (Pavel =?iso-8859-2?q?Jan=EDk?= ml.) Newsgroups: gmane.emacs.gnus.general Subject: Re: Summary format - the `u' spec Date: 04 Mar 2001 22:21:24 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035170997 1803 80.91.224.250 (21 Oct 2002 03:29:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:29:57 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 5FB51D04A1 for ; Sun, 4 Mar 2001 16:23:03 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id PAB29960; Sun, 4 Mar 2001 15:22:34 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 04 Mar 2001 15:21:18 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id PAA26312 for ; Sun, 4 Mar 2001 15:21:07 -0600 (CST) Original-Received: from snowwhite.suse.cz (p018.as-l002.contactel.cz [212.65.195.18]) by mailhost.sclp.com (Postfix) with ESMTP id 517F9D049E for ; Sun, 4 Mar 2001 16:21:30 -0500 (EST) Original-Received: by snowwhite.suse.cz (Postfix-PJ on SuSE Linux 7.1a (i386), from userid 500) id 2098828194; Sun, 4 Mar 2001 22:22:24 +0100 (CET) Original-To: Harry Putnam In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.98 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 41 Xref: main.gmane.org gmane.emacs.gnus.general:35220 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:35220 From: Harry Putnam 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