Gnus development mailing list
 help / color / mirror / Atom feed
From: Sten Drescher <stend@cris.com>
Subject: Re: Using gnus-summary-number-of-articles-in-thread
Date: 19 Dec 1995 13:13:18 -0600	[thread overview]
Message-ID: <5568fcvpdd.fsf@galil.austnsc.tandem.com> (raw)
In-Reply-To: Per Abrahamsen's message of Tue, 19 Dec 1995 18:21:29 +0100

Per Abrahamsen <abraham@dina.kvl.dk> said:

PA> You could also use

PA> 	gnus-thread-sort-by-total-score

PA> and then set

PA> 	gnus-thread-score-function

PA> to some function taking the average.

E.g>

PA> (defun arithmetic-average (&rest numbers)
PA>   (/ (apply '+ numbers) (length numbers)))

PA> (setq gnus-thread-score-function 'arithmetic-average)

	That won't work, because arithmetic-average won't get passed the
entire list of scores, but the score of the parent and its sub-threads:

---
gnus-thread-score-function's value is +

Documentation:
*Function used for calculating the total score of a thread.

The function is called with the scores of the article and each
subthread and should then return the score of the thread.
---

	This means that if there is a subthread of 20 articles averaging
5 (total 100), a subthread of 2 articles averaging 50 (100), and a
parent of 100, arithmetic-average would return 32 instead of 13.

-- 
#include <disclaimer.h>				/* Sten Drescher */
To get my PGP public key, send me email with your public key and
	Subject: PGP key exchange
Key fingerprint =  90 5F 1D FD A6 7C 84 5E  A9 D3 90 16 B2 44 C4 F3


      reply	other threads:[~1995-12-19 19:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-12-19 16:34 Sten Drescher
1995-12-19 17:21 ` Per Abrahamsen
1995-12-19 19:13   ` Sten Drescher [this message]

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=5568fcvpdd.fsf@galil.austnsc.tandem.com \
    --to=stend@cris.com \
    /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).