From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5804 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.user Subject: Re: 'To' and 'Newsgroups' extra headers Date: Sun, 02 Oct 2005 15:02:46 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <1128250069.244403.180190@o13g2000cwo.googlegroups.com> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138671463 28906 80.91.229.2 (31 Jan 2006 01:37:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:37:43 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:35:51 2006 Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!fu-berlin.de!newsfeed.in-ulm.de!news.uni-ulm.de!viandante.physik.uni-ulm.de!not-for-mail Original-Newsgroups: gnu.emacs.gnus X-Face: mtjf/D:es1T0wHO:&CJ'ZXe"l;3C--rw\z!{`eFwL){|]RpI+4{u25L=5C /0>KuGeTsk<~<&NE-AKV1560e!+RJeyWmSskkrJm?[vUV#66{T_m|Ae<||Ku#Mk5`y&O`n~z2;n8eP J5#2h@2eQgV@E70IY_0WlEx!"&giy{+\%h1LJox$zv@/l%ZmU4^tZA>xQpnkUBVC5.jpg#0'(+2?Rs )NAr:>3<=WxHE$ktbLysDIM5TbmHu*3 On Sun, Oct 02 2005, romeomedina@libero.it wrote: > 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? I don't understand why you don't follow the suggestions in the manual: ,----[ (info "(gnus)To From Newsgroups") ] | A related variable is `nnmail-extra-headers', which controls when to | include extra headers when generating overview (NOV) files. If you | have old overview files, you should regenerate them after changing this | variable, by entering the server buffer using `^', and then `g' on the | appropriate mail server (e.g. nnml) to cause regeneration. | | You also have to instruct Gnus to display the data by changing the | `%n' spec to the `%f' spec in the `gnus-summary-line-format' variable. | | In summary, you'd typically put something like the following in | `~/.gnus.el': | | (setq gnus-extra-headers | '(To Newsgroups)) | (setq nnmail-extra-headers gnus-extra-headers) | (setq gnus-summary-line-format | "%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n") | (setq gnus-ignored-from-addresses | "Your Name Here") | | (The values listed above are the default values in Gnus. Alter them | to fit your needs.) `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/