From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60969 Path: news.gmane.org!not-for-mail From: Michael Cook Newsgroups: gmane.emacs.gnus.general Subject: Re: "@" for addressed-to-you in summary line Date: Sun, 18 Sep 2005 16:23:44 -0400 Organization: http://www.waxrat.com Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1127075159 7561 80.91.229.2 (18 Sep 2005 20:25:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Sep 2005 20:25:59 +0000 (UTC) Original-X-From: ding-owner+m9501@lists.math.uh.edu Sun Sep 18 22:25:56 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EH5iF-0003FL-LV for ding-account@gmane.org; Sun, 18 Sep 2005 22:24:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EH5iB-00006Q-00; Sun, 18 Sep 2005 15:24:31 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EH5hX-00006K-00 for ding@lists.math.uh.edu; Sun, 18 Sep 2005 15:23:51 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EH5hT-0000Ji-Ny for ding@lists.math.uh.edu; Sun, 18 Sep 2005 15:23:51 -0500 Original-Received: from smtp01.mrf.mail.rcn.net ([207.172.4.61]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EH5hS-0003aJ-00 for ; Sun, 18 Sep 2005 22:23:46 +0200 Original-Received: from 209-6-214-8.c3-0.lex-ubr2.sbo-lex.ma.cable.rcn.com (HELO pigpen.waxrat.com) ([209.6.214.8]) by smtp01.mrf.mail.rcn.net with ESMTP; 18 Sep 2005 16:23:45 -0400 X-IronPort-AV: i="3.97,120,1125892800"; d="scan'208"; a="83790360:sNHT20602272" Original-Received: from pigpen.waxrat.com (localhost.localdomain [127.0.0.1]) by pigpen.waxrat.com (8.12.11/8.12.11) with ESMTP id j8IKNi4d017061 for ; Sun, 18 Sep 2005 16:23:44 -0400 Original-To: ding@gnus.org In-Reply-To: (Karl Chen's message of "Thu, 11 Aug 2005 00:14:11 -0700") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (gnu/linux) X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60969 Archived-At: Karl Chen writes: > 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. [...] > (defun gnus-user-format-function-+ (header) > (if (kc-gnus-interesting-recipients-p (kc-mail-header-recipients header)) > "@" > " ")) cool. here's a slightly different version of your gnus-user-format-function-+ that distinguishes between emails where you're on the To list versus the Cc list: (defun gnus-user-format-function-+ (header) (let ((case-fold-search t)) (cond ((string-match gnus-ignored-from-addresses (gnus-extra-header 'To header)) "To ") ((string-match gnus-ignored-from-addresses (gnus-extra-header 'Cc header)) "Cc ") (" ")))) m.