* gnus: scoring articles by age
@ 2021-04-30 0:14 D
2021-05-02 6:48 ` Lars Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: D @ 2021-04-30 0:14 UTC (permalink / raw)
To: emacs-devel
Hi,
as the subject already implies I was wondering if there is a sensible
way to score articles "by age" in gnus. In principle this functionality
seems to be available via the "Date" key in score files, for example,
("Date"
("20200430T012905" -1 nil before))
would subtract 1 from the score of any article posted one year ago or
more. However, you'd have to update that value manually (yuck!) since
you can't put an expression such as
(format-time-string "%+4Y%m%dT%H%M%S" (time-subtract nil 31536000))
into a score file (afaik). As for why would that ever be useful:
consider things like weeding out unsuccessful threads, where any root
that has failed to amass any replies in some fixed time should receive a
negative score, or a root that amassed many replies in a short time
amass a positive score.
Cheers,
D.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gnus: scoring articles by age
2021-04-30 0:14 gnus: scoring articles by age D
@ 2021-05-02 6:48 ` Lars Ingebrigtsen
2021-05-02 13:56 ` D
0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-02 6:48 UTC (permalink / raw)
To: D; +Cc: emacs-devel
D <d.williams@posteo.net> writes:
> as the subject already implies I was wondering if there is a sensible
> way to score articles "by age" in gnus.
This exists in Emacs 28:
(("date"
(7 10 nil <)
(7 -10 nil >)
(14 -10 nil >)))
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gnus: scoring articles by age
2021-05-02 6:48 ` Lars Ingebrigtsen
@ 2021-05-02 13:56 ` D
0 siblings, 0 replies; 3+ messages in thread
From: D @ 2021-05-02 13:56 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: emacs-devel
That's great to know, thank you!
On 02/05/2021 08:48, Lars Ingebrigtsen wrote:
> D <d.williams@posteo.net> writes:
>
>> as the subject already implies I was wondering if there is a sensible
>> way to score articles "by age" in gnus.
>
> This exists in Emacs 28:
>
> (("date"
> (7 10 nil <)
> (7 -10 nil >)
> (14 -10 nil >)))
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-02 13:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-30 0:14 gnus: scoring articles by age D
2021-05-02 6:48 ` Lars Ingebrigtsen
2021-05-02 13:56 ` D
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.