Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* 'To' and 'Newsgroups' extra headers
@ 2005-10-02 10:47 romeomedina
  2005-10-02 13:02 ` Reiner Steib
  2005-10-02 14:23 ` 'To' and 'Newsgroups' extra headers [solved] Rodolfo Medina
  0 siblings, 2 replies; 4+ messages in thread
From: romeomedina @ 2005-10-02 10:47 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 'To' and 'Newsgroups' extra headers
  2005-10-02 10:47 'To' and 'Newsgroups' extra headers romeomedina
@ 2005-10-02 13:02 ` Reiner Steib
  2005-10-04 14:22   ` Rodolfo Medina
  2005-10-02 14:23 ` 'To' and 'Newsgroups' extra headers [solved] Rodolfo Medina
  1 sibling, 1 reply; 4+ messages in thread
From: Reiner Steib @ 2005-10-02 13:02 UTC (permalink / raw)


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/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 'To' and 'Newsgroups' extra headers [solved]
  2005-10-02 10:47 'To' and 'Newsgroups' extra headers romeomedina
  2005-10-02 13:02 ` Reiner Steib
@ 2005-10-02 14:23 ` Rodolfo Medina
  1 sibling, 0 replies; 4+ messages in thread
From: Rodolfo Medina @ 2005-10-02 14:23 UTC (permalink / raw)


romeomedina@libero.it writes:

It seems to be achieved with:

         (setq gnus-summary-line-format
               ":%U%R%z%I %-15,15a| %-20,20f| %s %-85=|%4L |%D \n")

         (setq gnus-extra-headers '(To Newsgroups))

         (setq gnus-ignored-from-addresses "")


Rodolfo


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 'To' and 'Newsgroups' extra headers
  2005-10-02 13:02 ` Reiner Steib
@ 2005-10-04 14:22   ` Rodolfo Medina
  0 siblings, 0 replies; 4+ messages in thread
From: Rodolfo Medina @ 2005-10-04 14:22 UTC (permalink / raw)


Rodolfo Medina <rodolfo.medina@libero.it> writes:

> 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?
>
> [...]
>
> It seems to be achieved with:
>
>          (setq gnus-summary-line-format
>                ":%U%R%z%I %-15,15a| %-20,20f| %s %-85=|%4L |%D \n")
>
>          (setq gnus-extra-headers '(To Newsgroups))
>
>          (setq gnus-ignored-from-addresses "")

I also put:

(setq nnmail-extra-headers gnus-extra-headers)

. The purpose I wanted is achieved, but *only* once the article
has been saved on disk. When I enter the nntp gnu.emacs.gnus newsgroup, 
all the articles have the 'From' header in place of the 'Newsgroups' header.
Then ,if I copy an article in another group and then open it again, I see the
'Newsgroups' header correctly displayed. It's strange?

Thanks,
Rodolfo


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-04 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-02 10:47 'To' and 'Newsgroups' extra headers romeomedina
2005-10-02 13:02 ` Reiner Steib
2005-10-04 14:22   ` Rodolfo Medina
2005-10-02 14:23 ` 'To' and 'Newsgroups' extra headers [solved] Rodolfo Medina

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).