Gnus development mailing list
 help / color / mirror / Atom feed
From: "Miles Bader" <miles@gnu.org>
Subject: Re: spam manual update for Gnus
Date: Fri, 21 Apr 2006 08:20:07 +0900	[thread overview]
Message-ID: <fc339e4a0604201620v19ad44b4q8fedef700ff6d4b0@mail.gmail.com> (raw)
In-Reply-To: <v9hd4o3t7z.fsf@marauder.physik.uni-ulm.de>

On 4/21/06, Reiner Steib <reinersteib+gmane@imap.cc> wrote:
> Miles, applying the patch to Gnus trunk gives a lot of rejected
> hunks[1].  I'm not sure how we should proceed with this.  Ted?

I went through the conflicts, and most of them seemed fairly trivial
-- I guess minor changes in the Gnus trunk tripped up the patch, but
the text didn't seem to have changed greatly.  So I just forced them
to Chong's new text.

The exceptions are that two new (in the trunk, prior to merging
Chong's changes) menu entries, and one new info node (ibid) are now
missing; somebody should re-add them wherever is appropriate in
Chong's new structure:

These are the (now missing) menu entries:

* Spam ELisp Package Sorting and Score Display in Summary Buffer::
* SpamAssassin back end::

This is the (now missing) info node:


@node Spam ELisp Package Sorting and Score Display in Summary Buffer
@subsubsection Spam ELisp Package Sorting and Score Display in Summary Buffer
@cindex spam scoring
@cindex spam sorting
@cindex spam score summary buffer
@cindex spam sort summary buffer
@cindex spam

You can display the spam score of articles in your summary buffer, and
you can sort articles by their spam score.

First you need to decide which back end you will be using.  If you use
the @code{spam-use-spamassassin},
@code{spam-use-spamassassin-headers}, or @code{spam-use-regex-headers}
back end, the @code{X-Spam-Status} header will be used.  If you use
@code{spam-use-bogofilter}, the @code{X-Bogosity} header will be used.
If you use @code{spam-use-crm114}, any header that matches the CRM114
score format will be used.  As long as you set the appropriate back end
variable to t @emph{before} you load @file{spam.el}, you will be
fine.  @code{spam.el} will automatically add the right header to the
internal Gnus list of required headers.

To show the spam score in your summary buffer, add this line to your
@code{gnus.el} file (note @code{spam.el} does not do that by default
so it won't override any existing @code{S} formats you may have).

@lisp
(defalias 'gnus-user-format-function-S 'spam-user-format-function-S)
@end lisp

Now just set your summary line format to use @code{%uS}.  Here's an
example that formats the spam score in a 5-character field:

@lisp
(setq gnus-summary-line-format
 "%U%R %10&user-date; $%5uS %6k  %B %(%4L: %*%-25,25a%) %s \n")
@end lisp

Finally, to sort by spam status, either do it globally:

@lisp
(setq
 gnus-show-threads nil
 gnus-article-sort-functions
  '(spam-article-sort-by-spam-status))
@end lisp

or per group (@pxref{Sorting the Summary Buffer}).


-Miles
--
Do not taunt Happy Fun Ball.



  reply	other threads:[~2006-04-20 23:20 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-03 20:59 Gnus manual update Chong Yidong
2006-02-06 19:18 ` Ted Zlatanov
2006-02-06 20:19   ` Chong Yidong
2006-02-06 20:31     ` spam manual update for Gnus (was: Gnus manual update) Ted Zlatanov
2006-02-06 22:49       ` spam manual update for Gnus Reiner Steib
2006-02-08 20:20         ` Ted Zlatanov
2006-02-08 20:56           ` Chong Yidong
2006-02-09 15:00           ` spam.el: Bugs, compatibility with v5-10 (was: spam manual update for Gnus) Reiner Steib
2006-02-13 19:04             ` spam.el: Bugs, compatibility with v5-10 Ted Zlatanov
2006-02-13 22:36               ` Emacs 20.7 compatibility in v5-10 (was: spam.el: Bugs, compatibility with v5-10) Reiner Steib
2006-03-20 19:51                 ` Emacs 20.7 compatibility in v5-10 Ted Zlatanov
2006-03-20 20:38                   ` Reiner Steib
2006-02-13 19:15             ` ham destination bugs (was: spam.el: Bugs, compatibility with v5-10) Ted Zlatanov
2006-02-14 15:04               ` ham destination bugs Reiner Steib
2006-02-20 14:29                 ` Reiner Steib
2006-05-27 10:17                   ` Reiner Steib
2006-05-30 13:55                     ` Ted Zlatanov
2006-06-08 20:54                   ` spam.el spam-summary-prepare-exit rewrite (was: ham destination bugs) Ted Zlatanov
2006-04-19 14:23           ` spam manual update for Gnus Reiner Steib
2006-04-20 18:18             ` Ted Zlatanov
2006-04-20 18:38               ` Chong Yidong
2006-04-20 20:08               ` Reiner Steib
2006-04-20 23:20                 ` Miles Bader [this message]
2006-04-20 18:45             ` Ted Zlatanov
2006-02-06 20:25   ` message mode screwy (was: Gnus manual update) Ted Zlatanov
2006-02-08 16:52     ` message mode screwy Reiner Steib
2006-02-09 15:37       ` Ted Zlatanov
2006-02-13 18:58         ` Ted Zlatanov
2006-02-13 22:15           ` Adam Sjøgren
2006-02-13 22:39           ` Reiner Steib

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=fc339e4a0604201620v19ad44b4q8fedef700ff6d4b0@mail.gmail.com \
    --to=miles@gnu.org \
    /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).