From: Karl Chen <quarl@NOSPAM.quarl.org>
Subject: "@" for addressed-to-you in summary line
Date: Thu, 11 Aug 2005 00:14:11 -0700 [thread overview]
Message-ID: <quack.20050811T0014.87k6it0wu4@quack.cs.berkeley.edu> (raw)
I've been using the following code successfully for over a year to
mark mail addressed to me with a "@". This is the same as the "+"
character used by pine and mutt. To use add "%u+" to
gnus-summary-line-format. I hope someone finds this useful.
Something similar is suitable for inclusion in Gnus.
(setq gnus-extra-headers '(To Cc Newsgroups Original-To))
(defun kc-mail-header-recipients (header)
"Returns string of recipients extracted from To: and Cc: headers."
(mapconcat (lambda (h) (gnus-extra-header h header)) '(To Cc Original-To) ", "))
(defvar kc-gnus-interesting-recipients nil
"*Regexp of addresses for which to mark \"@\" in summary buffer.")
(defun kc-gnus-interesting-recipients-p (to)
"Returns non-nil if any string in TO is \"interesting\".
A string is interesting if it is matched by `kc-gnus-interesting-recipients'"
(and kc-gnus-interesting-recipients
to
(string-match kc-gnus-interesting-recipients to)))
(defun gnus-user-format-function-+ (header)
(if (kc-gnus-interesting-recipients-p (kc-mail-header-recipients header))
"@"
" "))
--
Karl 2005-08-11 00:08
next reply other threads:[~2005-08-11 7:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-11 7:14 Karl Chen [this message]
2005-09-18 20:23 ` Michael Cook
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=quack.20050811T0014.87k6it0wu4@quack.cs.berkeley.edu \
--to=quarl@nospam.quarl.org \
--cc=quarl+dated+1124176130.893ea2@nospam.quarl.org \
/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).