From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/19618 Path: main.gmane.org!not-for-mail From: Jack Vinson Newsgroups: gmane.emacs.gnus.general Subject: Re: ? gnus-summary-line-format selectable according to sender? Date: 03 Dec 1998 11:10:34 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: References: <8t6ogpmf9v4.fsf@Corp.Sun.COM> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 X-Trace: main.gmane.org 1035157936 12531 80.91.224.250 (20 Oct 2002 23:52:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:52:16 +0000 (UTC) Return-Path: Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA02254 for ; Thu, 3 Dec 1998 12:14:48 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.9.1/8.9.1) with ESMTP id LAA20148; Thu, 3 Dec 1998 11:12:04 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 03 Dec 1998 11:12:02 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id LAA18181 for ; Thu, 3 Dec 1998 11:11:51 -0600 (CST) Original-Received: from gatekeeper2.monsanto.com (firewall-user@gatekeeper2.monsanto.com [199.89.234.124]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id MAA02187 for ; Thu, 3 Dec 1998 12:11:44 -0500 (EST) Original-Received: by gatekeeper2.monsanto.com; id LAA09336; Thu, 3 Dec 1998 11:07:19 -0600 Original-Received: from mhstl1.monsanto.com(10.135.250.82) by gatekeeper2.monsanto.com via smap (4.1) id xma007776; Thu, 3 Dec 98 11:06:05 -0600 Original-Received: from [137.35.49.136] by mhstl1.monsanto.com; (5.65v3.2/1.1.8.2/02Sep98-1041AM) id AA31431; Thu, 3 Dec 1998 11:10:23 -0600 Original-To: ding@gnus.org X-Zippy: Feel th' WHIRLING BUFFERS buffing away all that stress... In-Reply-To: Lars Magne Ingebrigtsen's message of "Thu, 03 Dec 1998 12:35:55 +0100" User-Agent: Gnus/5.070059 (Pterodactyl Gnus v0.59) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 40 Xref: main.gmane.org gmane.emacs.gnus.general:19618 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:19618 >>>>> "LMI" == Lars Magne Ingebrigtsen writes: LMI> Rajesh Godbole writes: >> Is there any way to set gnus-summary-line-format to show >> "To: anotherperson@otherplace.org" if the message is from me? LMI> See the "To From Newsgroups" sectoion in the Gnus manual. Hmm. This is interesting. I am using BBDB with my standard summary buffers. It tells me who is in my database and uses their full name when available. However, when I want to look at my draft folder or my archive I want to see who the message went TO as in the discussion in the above Info page. To get both of these things to work, I had to write my own gnus-uers-gnus-user-format-function-*, below. Note that I specifically have to include "nobody" in the gnus-ignored-from-addresses because that is the from address that shows up in the Drafts folder. (setq gnus-extra-headers '(To) nnmail-extra-headers gnus-extra-headers gnus-ignored-from-addresses "\\(jvinson@chevax\\.ecs\\.umass\\.edu\\|nobody\\)" ;; Default value is "%U%R%z%I%(%[%4L: %-20,20n%]%) %s\n" gnus-summary-line-format "%U%R%z%I%(%[%4L: %-20,20ud%]%) %s\n" ) (defun gnus-user-format-function-d (group-tmp) "Decide to use either the BBDB function or the %f form." (let ((group gnus-newsgroup-name)) ;; Set the Summary Line Format special for outgoing archives (if (and group (string-match "\\(drafts\\|misc-\\(mail\\|news\\)\\)" group)) ;; gnus-tmp-header is defined in the calling function (gnus-summary-from-or-to-or-newsgroups group-tmp) (bbdb/gnus-summary-get-author group-tmp) )) ) -- Jack Vinson http://www.cis.upenn.edu/~vinson/ Zippy: My haircut is totally traditional!