Gnus development mailing list
 help / color / mirror / Atom feed
From: deskpot@despammed.com (Vasily Korytov)
Subject: spamc invocation: move from procmail to Gnus
Date: Sat, 24 Apr 2004 23:33:59 +0400	[thread overview]
Message-ID: <873c6tdvbs.fsf@unix.home.local> (raw)

Hi everybody,

My mail is currently delivered like this:

,----
| unix% cat .forward 
| |/usr/local/bin/procmail
| unix% tail -4 .procmailrc 
| # make use of SpamAssassin
| #:0fw
| |/usr/local/bin/spamc || exit 0
| #|/usr/local/bin/spamassassin -L
| unix% grep DEFAULT .procmailrc 
| DEFAULT=$HOME/Maildir/
`----

I.e. it's fetched by fetchmail and other means and put in maildir by
procmail, preprocessed by spamassassin. I'm moving my home directory to
NFS and the host machine (k6-266/128m/ata) won't be able to easily
handle spamassassin. So I want to run spamc on client machines.

Oh, boy, I thought, that was done a thousand times. I've looked into
gnus.info and found the solution, that is to add (: function)
construction to nnmail-split-fancy, that calls `spamc -c`.
Unfortunately, that does not suit me: I definitely want spam scores in
message headers. Ok, there is also a solution with a
prescript/postscript -- but do they exist with maildir (for NFS I really
don't want mboxes)? If yes, we got to fix the docs, I think.

I've also looked into spam.el, but found the way, it offers, too
complicated, but uneffective. I simply want to have spamassassin scores
in message header before it gets delivered to a folder.

So, the question is: is there a way to preprocess message being
delivered from a maildir to Gnus with a command? I.e. feed it to some
program and continue other filter rules (I use nnmail-split-fancy) with
its output?

Thanks.

-- 
       I accept RFC3156 and RFC2440-compatible encrypted mail.
PGP key fingerprint: 3273 7F6F 7B87 5DD5 9848 05FB E442 86BC 2E6B 6831




             reply	other threads:[~2004-04-24 19:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-24 19:33 Vasily Korytov [this message]
2004-04-25 11:32 ` Jonas Steverud
2004-04-25 19:38   ` Vasily Korytov
2004-04-26  7:24     ` Jonas Steverud
2004-04-26 11:15       ` Vasily Korytov
2004-05-12 16:48   ` Ted Zlatanov
2004-05-13  8:26     ` Jonas Steverud
2004-04-30  0:18 ` Kevin Ryde

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=873c6tdvbs.fsf@unix.home.local \
    --to=deskpot@despammed.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).