Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: steinab@ifi.uio.no (Steinar Børmer)
Subject: Re: I Want Same Summary Line Format For Nntp And Nnml Group
Date: Sat, 02 Jul 2005 21:08:43 +0200	[thread overview]
Message-ID: <861x6hnhz8.fsf@pallotta.studby.uio.no> (raw)
In-Reply-To: <8764vuh7w0.fsf@narke.yellow.line>

Steven Woody wrote:

| and, this is a sample summary line of my nnml:mail.misc group,
| R  [   7: -> Steven Woody        ] Out of Office AutoReply
| 
| my name is Steven Woody, so i dont want to know in my mail folder.
| and, as i treat mail folder and news folder almostly in a same way, so
| i wan to make the line format of mail folder as same as news folder.

You're not alone on this one.  ;)

| below is the currently gnus-summary-line-format value
| 
|       gnus-summary-line-format's value is 
|       "%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n"
|       Local in buffer *Summary nnml:mail.misc*; global value is 
|       "%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n"
| 
| it's amazing that the local value and global value are exactly same!
| so i dont understand what make the differences.

Don't worry about the fact that they are the same, it shouldn't be a
problem.
 
| so, what do i do? thanks.

(setq gnus-summary-line-format "%U%R%z%I%(%[%4L: %-23n%]%) %s\n")

I've changed the "f" to an "n", and you can see from the docs:

`C-h v gnus-summary-line-format RET' gives (excerpts:)

,----
| %n   Name of the poster (string)
| %a   Extracted name of the poster (string)
| %A   Extracted address of the poster (string)
| %F   Contents of the From: header (string)
| %f   Contents of the From: or To: headers (string)
`----

For some reason, Gnus defaults to the To: header in nnml when "f" is
active.  I haven't looked into why, someone else can certainly answer
that one.   Also, you might want to experiment with some of the other
alternatives above.

You'll also notice that I've changed "-23,23" to "-23", and that's
because really long names will be shown.  That's my personal preference
only.

-- 
SB

When in doubt, use brute force.
                -- Ken Thompson


  reply	other threads:[~2005-07-02 19:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-01 15:18 Steven Woody
2005-07-02 19:08 ` Steinar Børmer [this message]
2005-07-02 20:59   ` Neil Woods
2005-07-04 19:09     ` Steven Woody

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=861x6hnhz8.fsf@pallotta.studby.uio.no \
    --to=steinab@ifi.uio.no \
    /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).