From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5802 Path: news.gmane.org!not-for-mail From: romeomedina@libero.it Newsgroups: gmane.emacs.gnus.user Subject: 'To' and 'Newsgroups' extra headers Date: 2 Oct 2005 03:47:49 -0700 Organization: http://groups.google.com Message-ID: <1128250069.244403.180190@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1138671460 28898 80.91.229.2 (31 Jan 2006 01:37:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:37:40 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:35:51 2006 Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: 151.26.67.11 Original-X-Trace: posting.google.com 1128250076 14235 127.0.0.1 (2 Oct 2005 10:47:56 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 2 Oct 2005 10:47:56 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=151.26.67.11; posting-account=jAR8oAwAAAAzWEZi_PGTqTf56RwG205B Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:5944 Original-Lines: 19 X-Gnus-Article-Number: 5944 Tue Jan 17 17:35:51 2006 Xref: news.gmane.org gmane.emacs.gnus.user:5802 Archived-At: In order to have the 'To' header displayed in the summary buffer, I put in ~/.gnus.el the following: (setq gnus-extra-headers '(To)) (setq gnus-summary-line-format ":%U%R%z%I %-15,15a| %-20,20~(form (gnus-extra-header 'To))@| %s %-85=|%4L |%D \n") . Now, I want gnus to display the 'To' header when it exists, i.e. for mails, but the 'Newsgroups' header in its place when the 'To' header does not exist and there is the 'Newsgroup' header, i.e. with newsgroups messages. Any suggestion about the right syntax in ~/.gnus.el? Thanks, Rodolfo