Gnus development mailing list
 help / color / mirror / Atom feed
From: ShengHuo ZHU <zsh@cs.rochester.edu>
Subject: Re: Gnus 5.8.8 and gnus-summary-line-format (%f)
Date: 19 Jan 2001 10:10:43 -0500	[thread overview]
Message-ID: <5blms737d8.fsf@avocet.cs.rochester.edu> (raw)
In-Reply-To: <xpxyu26vmw3b.fsf@Germany.Sun.com> (Peter.Weiss@Class.de's message of "19 Jan 2001 15:54:00 +0100")

Peter.Weiss@Class.de writes:

> >>>>> On 19 Jan 2001 09:33:47 -0500, ShengHuo ZHU <zsh@cs.rochester.edu> said:
> 
> ZSH> Peter.Weiss@Class.de writes:
> >> Hello all,
> >> 
> >> having upgraded to version 5.8.8 I also fiddled a little around with
> >> gnus-summary-line-format:
> >> 
> >> 
> >> (setq gnus-extra-headers               '(To Newsgroups)
> >> nnmail-extra-headers             gnus-extra-headers
> >> gnus-summary-line-format         "%U%R%z%I%(%[%4L: %-20,20f%]%) %s\n"
> >> ;; well, that's not the best but works for all environments:
> >> gnus-ignored-from-addresses      (concat user-mail-address ".*"))
> >> 
> >> The thing that this setting doesn't match is %f formatstring, when using
> >> another "From:" header for my own address.
> >> 
> >> Is there way to force the formatting to use the "To:" field instead the
> >> "From:" field for some special groups, even when the From: header differs
> >> from my own address?
> 
> ZSH> You miss one step, rebuilding the NOV databases.  If you are using
> ZSH> nnml, `M-x nnml-generate-nov-databases RET' does it.
> 
> Hello,
> 
>     thanks for the quick answer, but sorry, this doesn't work. This copy of
>     a summary buffer shows the situation before and after setting the "From"
>     header in that nnfolder+archive group:
> 
> !  [  22: -> ding@gnus.org    ] Summary Line based on folder type 
> !  [  29: Peter.Weiss@Class.de] Gnus 5.8.8 and gnus-summary-line-format (%f)
> 
>     Of course I prefer the first one.

Opps, I made a mistake.  

gnus-ignored-from-addresses is a regexp. If you want to ignore all
from addresses, you can

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

If you only want to ignore a few your own address, the following may
help.

(setq gnus-ignored-from-addresses
      (concat "(nobody)\\|" (regexp-quote user-mail-address)
        "\\|" (regexp-quote YOUR-SECOND-MAIL-ADDRESS)
        "\\|" (regexp-quote YOUR-THIRD-MAIL-ADDRESS)))

[ (nobody) is used when there is no FROM address. ]

ShengHuo



  reply	other threads:[~2001-01-19 15:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-19 14:14 Peter.Weiss
2001-01-19 14:33 ` ShengHuo ZHU
2001-01-19 14:54   ` Peter.Weiss
2001-01-19 15:10     ` ShengHuo ZHU [this message]
2001-01-19 16:00       ` Peter.Weiss

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=5blms737d8.fsf@avocet.cs.rochester.edu \
    --to=zsh@cs.rochester.edu \
    /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).