From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57125 Path: main.gmane.org!not-for-mail From: deskpot@despammed.com (Vasily Korytov) Newsgroups: gmane.emacs.gnus.general Subject: spamc invocation: move from procmail to Gnus Date: Sat, 24 Apr 2004 23:33:59 +0400 Sender: ding-owner@lists.math.uh.edu Message-ID: <873c6tdvbs.fsf@unix.home.local> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082835506 5046 80.91.224.253 (24 Apr 2004 19:38:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Apr 2004 19:38:26 +0000 (UTC) Original-X-From: ding-owner+M5665@lists.math.uh.edu Sat Apr 24 21:38:18 2004 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 1BHSyf-0007iT-00 for ; Sat, 24 Apr 2004 21:38:17 +0200 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 1BHSxC-0006ea-00; Sat, 24 Apr 2004 14:36:46 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BHSx3-0006eS-00 for ding@lists.math.uh.edu; Sat, 24 Apr 2004 14:36:37 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BHSx3-0007my-Ba for ding@lists.math.uh.edu; Sat, 24 Apr 2004 14:36:37 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id C2C063A0041 for ; Sat, 24 Apr 2004 14:36:35 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BHSx0-0003ML-00 for ; Sat, 24 Apr 2004 21:36:34 +0200 Original-Received: from d133-70.dialup.relline.ru ([195.146.70.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Apr 2004 21:36:34 +0200 Original-Received: from deskpot by d133-70.dialup.relline.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Apr 2004 21:36:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 43 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: d133-70.dialup.relline.ru Mail-Copies-To: never Cancel-Lock: sha1:WPhQuUOzynYBAMgQoJmcGYYlUvY= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57125 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57125 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