From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54707 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: displaying arbitrary headers in summary Date: Thu, 06 Nov 2003 16:00:44 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4n7k2d2ow3.fsf@koz.bwh.harvard.edu> References: <87znf9d6i8.fsf@w3.org> <87islx1hsg.fsf@mulligatwani.msrl.com> <4nsml12rs9.fsf@koz.bwh.harvard.edu> <874qxh1c6t.fsf@mulligatwani.msrl.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1068152569 28821 80.91.224.253 (6 Nov 2003 21:02:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2003 21:02:49 +0000 (UTC) Cc: Max Froumentin , ding@gnus.org Original-X-From: ding-owner+M3248@lists.math.uh.edu Thu Nov 06 22:02:46 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AHrHB-000229-00 for ; Thu, 06 Nov 2003 22:02:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AHrGh-0004ja-00; Thu, 06 Nov 2003 15:02:15 -0600 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AHrGa-0004jU-00 for ding@lists.math.uh.edu; Thu, 06 Nov 2003 15:02:08 -0600 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by justine.libertine.org (Postfix) with ESMTP id 6C84D3A004B for ; Thu, 6 Nov 2003 15:02:06 -0600 (CST) Original-Received: from koz.bwh.harvard.edu (koz [134.174.9.110]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id hA6L1Y726924; Thu, 6 Nov 2003 16:01:34 -0500 (EST) Original-Received: (from tzz@localhost) by koz.bwh.harvard.edu (8.11.6+Sun/8.11.0) id hA6L0io17261; Thu, 6 Nov 2003 16:00:44 -0500 (EST) Original-To: Michael Shields X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: Michael Shields , Max Froumentin , ding@gnus.org In-Reply-To: <874qxh1c6t.fsf@mulligatwani.msrl.com> (Michael Shields's message of "Thu, 06 Nov 2003 20:20:26 +0000") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54707 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54707 On Thu, 06 Nov 2003, shields@msrl.com wrote: > In message <4nsml12rs9.fsf@koz.bwh.harvard.edu>, > Ted Zlatanov wrote: >> Can this go into spam.el, to be turned on by default for Bogofilter >> and spam-use-regex (SpamAssassin) users if the users request it? > > If you like; I have copyright papers on file already. We'd need to > assign another character for the spam score in summary lines, since > %u is from the reserved user space. How would I do that for all of Gnus, considering I don't want it to be on by default? It seems like all that would have to be inserted in gnus-summary-line-format-alist is: (?$ gnus-tmp-spam-score ?d) but it seems only integers are supported. Then in gnus-summary-prepare-threads I will need to add (setq gnus-tmp-spam-score (or (cdr (assq number gnus-newsgroup-spam-scored)) gnus-summary-default-spam-score 0)) But from that point on, I'm not sure where to add the code that would let spam.el generate gnus-newsgroup-spam-scored. Can I put it in the summary entry hook, or is that too late because the lines are already generated? >> Maybe it can interface with the existing scoring functions for >> Bogofilter. I've been thinking about uniform weighted scoring for >> spam.el - something that will always score between -1 and 1. For >> instance, SA scores, which can be between -inf. and inf. could be >> weighted like so: > > It should be straightforward to create a function that will map from > one spam analyzer's scores to another, maintaining a constant > distribution; Spamassassin's distribution is well-known and I think > the pure Bayesian analyzers will have a natural bell curve. But > what do you plan to do with this? I like a consistent score. If the SA score is 5 and Bogofilter says 2, what does that mean currently? Well, it depends on the user's SA and Bogofilter thresholds :) Also, SA scores are not well-known. The user can skew the tests up or down, so they are not bound inside the -100 to +100 interval as it would seem. If I'm the only one who wants to normalize scores, then never mind, I'll just use the raw SA or Bogofilter scores. It's silly to over-engineer something that needs speed more than anything (so the summary buffer doesn't take a long time to be displayed). >>> This displays the score for each article, and also puts the most >>> likely false positives at the top. >> >> Looks very useful! I don't think any of this belongs in spam.el of >> course, but it should probably go in the manual if we add your >> formatting and headers code above. > > Do you want me to write a documentation patch? Sure, if you want to write a tutorial on displaying and sorting by the spam score. But let's get the spam.el modifications done first, so your tutorial doesn't have to include all that code. Ted