* I Want Same Summary Line Format For Nntp And Nnml Group
@ 2005-07-01 15:18 Steven Woody
2005-07-02 19:08 ` Steinar Børmer
0 siblings, 1 reply; 4+ messages in thread
From: Steven Woody @ 2005-07-01 15:18 UTC (permalink / raw)
this is a sample summary line of my nntp:news.foo.bar group,
[ 108: lance ] No color in console xemacs
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.
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.
so, what do i do? thanks.
-
narke
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I Want Same Summary Line Format For Nntp And Nnml Group
2005-07-01 15:18 I Want Same Summary Line Format For Nntp And Nnml Group Steven Woody
@ 2005-07-02 19:08 ` Steinar Børmer
2005-07-02 20:59 ` Neil Woods
0 siblings, 1 reply; 4+ messages in thread
From: Steinar Børmer @ 2005-07-02 19:08 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I Want Same Summary Line Format For Nntp And Nnml Group
2005-07-02 19:08 ` Steinar Børmer
@ 2005-07-02 20:59 ` Neil Woods
2005-07-04 19:09 ` Steven Woody
0 siblings, 1 reply; 4+ messages in thread
From: Neil Woods @ 2005-07-02 20:59 UTC (permalink / raw)
>>>>> "SB" == Steinar Børmer <steinab@ifi.uio.no> writes:
SB> For some reason, Gnus defaults to the To: header in nnml when "f" is
SB> active. I haven't looked into why, someone else can certainly answer
SB> that one. Also, you might want to experiment with some of the other
SB> alternatives above.
Take a look at the variable 'gnus-ignored-from-addresses'. It is a
regular expression of From headers that may be suppressed in favour of
To headers. For example, I have it set to "Neil Woods" so that when I
look at mail I have sent, my name gets replaced by the name of the
person I sent the mail to. In a similar fashion, in newsgroup summary
buffers, the name of the newsgroup is inserted.
--
Neil
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I Want Same Summary Line Format For Nntp And Nnml Group
2005-07-02 20:59 ` Neil Woods
@ 2005-07-04 19:09 ` Steven Woody
0 siblings, 0 replies; 4+ messages in thread
From: Steven Woody @ 2005-07-04 19:09 UTC (permalink / raw)
Neil Woods <cnw+usenet@pobox.com> writes:
>>>>>> "SB" == Steinar Børmer <steinab@ifi.uio.no> writes:
>
> SB> For some reason, Gnus defaults to the To: header in nnml when "f" is
> SB> active. I haven't looked into why, someone else can certainly answer
> SB> that one. Also, you might want to experiment with some of the other
> SB> alternatives above.
>
> Take a look at the variable 'gnus-ignored-from-addresses'. It is a
> regular expression of From headers that may be suppressed in favour of
> To headers. For example, I have it set to "Neil Woods" so that when I
> look at mail I have sent, my name gets replaced by the name of the
> person I sent the mail to. In a similar fashion, in newsgroup summary
> buffers, the name of the newsgroup is inserted.
>
> --
> Neil
thanks all of you. after study your posts, i finnally decide using following
code:
(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
"Steven Woody")
it seems Steinar's solution of replacing '%f' with '%n' is also a good idea.
-
narke
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-07-04 19:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-01 15:18 I Want Same Summary Line Format For Nntp And Nnml Group Steven Woody
2005-07-02 19:08 ` Steinar Børmer
2005-07-02 20:59 ` Neil Woods
2005-07-04 19:09 ` Steven Woody
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).