From: Jack Vinson <jvinson@chevax.ecs.umass.edu>
Subject: Re: ? gnus-summary-line-format selectable according to sender?
Date: 03 Dec 1998 11:10:34 -0600 [thread overview]
Message-ID: <wkemqh1791.fsf@chevax.ecs.umass.edu> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "Thu, 03 Dec 1998 12:35:55 +0100"
>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
LMI> Rajesh Godbole <argv@Sun.COM> 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 <jvinson@chevax.ecs.umass.edu> http://www.cis.upenn.edu/~vinson/
Zippy: My haircut is totally traditional!
prev parent reply other threads:[~1998-12-03 17:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-02 22:38 Rajesh Godbole
1998-12-03 11:35 ` Lars Magne Ingebrigtsen
1998-12-03 17:10 ` Jack Vinson [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=wkemqh1791.fsf@chevax.ecs.umass.edu \
--to=jvinson@chevax.ecs.umass.edu \
/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).