Gnus development mailing list
 help / color / mirror / Atom feed
* Limit summary to participant
@ 2002-09-30  9:02 Nicolas Kowalski
  2002-09-30 10:01 ` Kai Großjohann
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Kowalski @ 2002-09-30  9:02 UTC (permalink / raw)



Hello.

Using Oort 0.07, is there a way to limit summary buffers to a
particular To, CC field or any Participant field (like in Pine), as
does `gnus-summary-limit-to-author' ?

BTW, can the `display' group parameter be used to limit articles
display by age (say, make one group only display messages younger than
one week) ?

Thanks.

-- 
Nicolas.




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

* Re: Limit summary to participant
  2002-09-30  9:02 Limit summary to participant Nicolas Kowalski
@ 2002-09-30 10:01 ` Kai Großjohann
  2002-09-30 11:05   ` Nicolas Kowalski
       [not found]   ` <hhwup3sry1.fsf@blah.pl>
  0 siblings, 2 replies; 8+ messages in thread
From: Kai Großjohann @ 2002-09-30 10:01 UTC (permalink / raw)
  Cc: ding

Nicolas Kowalski <Nicolas.Kowalski@imag.fr> writes:

> Using Oort 0.07, is there a way to limit summary buffers to a
> particular To, CC field or any Participant field (like in Pine), as
> does `gnus-summary-limit-to-author' ?

You can add To and Cc to nnmail-extra-headers and
gnus-extra-headers.  Then you can do `/ x' to limit on the To and on
the Cc header.

This is not what you want, I think, but it's the closest that Gnus
supports, I think.

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

> BTW, can the `display' group parameter be used to limit articles
> display by age (say, make one group only display messages younger
> than one week) ?

Not that I know of.  You can execute `/ t' when you enter the group,
and probably you can add this to a hook, too.

kai
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)



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

* Re: Limit summary to participant
  2002-09-30 10:01 ` Kai Großjohann
@ 2002-09-30 11:05   ` Nicolas Kowalski
  2002-09-30 13:52     ` Kai Großjohann
  2002-10-02  4:08     ` Dan Christensen
       [not found]   ` <hhwup3sry1.fsf@blah.pl>
  1 sibling, 2 replies; 8+ messages in thread
From: Nicolas Kowalski @ 2002-09-30 11:05 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> Nicolas Kowalski <Nicolas.Kowalski@imag.fr> writes:
>
>> Using Oort 0.07, is there a way to limit summary buffers to a
>> particular To, CC field or any Participant field (like in Pine), as
>> does `gnus-summary-limit-to-author' ?
>
> You can add To and Cc to nnmail-extra-headers and
> gnus-extra-headers.  Then you can do `/ x' to limit on the To and on
> the Cc header.
>
> This is not what you want, I think, but it's the closest that Gnus
> supports, I think.
>
> (setq nnmail-extra-headers '(To Cc Newsgroups))
> (setq gnus-extra-headers nnmail-extra-headers)

This seems to do most of the job needed. I can handle things with
this. Thanks.


>> BTW, can the `display' group parameter be used to limit articles
>> display by age (say, make one group only display messages younger
>> than one week) ?
>
> Not that I know of.  You can execute `/ t' when you enter the group,
> and probably you can add this to a hook, too.

What hook is the best for this ? If I use :

(add-hook 'gnus-summary-prepare-hook 
	  (lambda ()(gnus-summary-limit-to-age 7 t)))

...it turns into infinite loop :-(.

Thanks.

-- 
Nicolas




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

* Re: Limit summary to participant
       [not found]   ` <hhwup3sry1.fsf@blah.pl>
@ 2002-09-30 13:51     ` Kai Großjohann
  0 siblings, 0 replies; 8+ messages in thread
From: Kai Großjohann @ 2002-09-30 13:51 UTC (permalink / raw)


Maciej Matysiak <phoner.ding@blah.pl> writes:

> On the 30th of September 2002 at 12:01, Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) wrote:
>
>> You can add To and Cc to nnmail-extra-headers and gnus-extra-headers.
>
> what's the difference between nnmail-extra-headers and gnus-extra-headers?
> for both 'c-h v' says: extra headers to parse. are they redundant?

nnmail-extra-headers means to insert them into the overview/NOV data
for nnml and nnfolder (and other backends supporting NOV).

gnus-extra-headers means, I think, to extract them from the
overview/NOV data when present.  Also, some backends don't have NOV
and so this variable means (I think) to extract them from the headers.

For example, if your NNTP server provides some headers as extra
headers, then you don't need nnmail-extra-headers.

But indeed, there is great overlap in their use, so maybe they should
be unified.  Opinions?

kai
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)



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

* Re: Limit summary to participant
  2002-09-30 11:05   ` Nicolas Kowalski
@ 2002-09-30 13:52     ` Kai Großjohann
  2002-09-30 13:58       ` Nicolas Kowalski
  2002-10-02  4:08     ` Dan Christensen
  1 sibling, 1 reply; 8+ messages in thread
From: Kai Großjohann @ 2002-09-30 13:52 UTC (permalink / raw)
  Cc: ding

Nicolas Kowalski <Nicolas.Kowalski@imag.fr> writes:

> What hook is the best for this ? If I use :
>
> (add-hook 'gnus-summary-prepare-hook 
> 	  (lambda ()(gnus-summary-limit-to-age 7 t)))
>
> ...it turns into infinite loop :-(.

Maybe gnus-summary-limit-to-age calls the hook again.  You could do
this hack:

(lambda ()
  (let ((gnus-summary-prepare-hook nil))
    (gnus-summary-limit-to-age 7 t)))

kai
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)



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

* Re: Limit summary to participant
  2002-09-30 13:52     ` Kai Großjohann
@ 2002-09-30 13:58       ` Nicolas Kowalski
  0 siblings, 0 replies; 8+ messages in thread
From: Nicolas Kowalski @ 2002-09-30 13:58 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> Maybe gnus-summary-limit-to-age calls the hook again.  You could do
> this hack:
>
> (lambda ()
>   (let ((gnus-summary-prepare-hook nil))
>     (gnus-summary-limit-to-age 7 t)))

Yep ! This works well :-). Thank you.

-- 
Nicolas




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

* Re: Limit summary to participant
  2002-09-30 11:05   ` Nicolas Kowalski
  2002-09-30 13:52     ` Kai Großjohann
@ 2002-10-02  4:08     ` Dan Christensen
  2002-10-02  7:19       ` Nicolas Kowalski
  1 sibling, 1 reply; 8+ messages in thread
From: Dan Christensen @ 2002-10-02  4:08 UTC (permalink / raw)
  Cc: ding

Nicolas Kowalski <Nicolas.Kowalski@imag.fr> writes:

> What hook is the best for this ? If I use :
>
> (add-hook 'gnus-summary-prepare-hook 
> 	  (lambda ()(gnus-summary-limit-to-age 7 t)))
>
> ...it turns into infinite loop :-(.

You should use gnus-summary-prepared-hook, which only runs the
first time a summary buffer is produced.  Also, this allows you
to use '/ w' to pop this limit.

Dan

-- 
Dan Christensen
jdc@uwo.ca



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

* Re: Limit summary to participant
  2002-10-02  4:08     ` Dan Christensen
@ 2002-10-02  7:19       ` Nicolas Kowalski
  0 siblings, 0 replies; 8+ messages in thread
From: Nicolas Kowalski @ 2002-10-02  7:19 UTC (permalink / raw)


Dan Christensen <jdc@uwo.ca> writes:

> Nicolas Kowalski <Nicolas.Kowalski@imag.fr> writes:
>
>> What hook is the best for this ? If I use :
>>
>> (add-hook 'gnus-summary-prepare-hook 
>> 	  (lambda ()(gnus-summary-limit-to-age 7 t)))
>>
>> ...it turns into infinite loop :-(.
>
> You should use gnus-summary-prepared-hook, which only runs the
> first time a summary buffer is produced.  Also, this allows you
> to use '/ w' to pop this limit.

This works well :-). 

Thanks for the tip.

-- 
Nicolas




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

end of thread, other threads:[~2002-10-02  7:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-30  9:02 Limit summary to participant Nicolas Kowalski
2002-09-30 10:01 ` Kai Großjohann
2002-09-30 11:05   ` Nicolas Kowalski
2002-09-30 13:52     ` Kai Großjohann
2002-09-30 13:58       ` Nicolas Kowalski
2002-10-02  4:08     ` Dan Christensen
2002-10-02  7:19       ` Nicolas Kowalski
     [not found]   ` <hhwup3sry1.fsf@blah.pl>
2002-09-30 13:51     ` Kai Großjohann

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