From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44283 Path: main.gmane.org!not-for-mail From: Bill White Newsgroups: gmane.emacs.gnus.general Subject: Re: Spam spam spam spam spam Date: Sat, 13 Apr 2002 19:57:40 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018752149 18653 127.0.0.1 (14 Apr 2002 02:42:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 14 Apr 2002 02:42:29 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16wZyG-0004qk-00 for ; Sun, 14 Apr 2002 04:42:28 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16wZww-00017j-00; Sat, 13 Apr 2002 21:41:06 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 13 Apr 2002 21:41:16 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id VAA03607 for ; Sat, 13 Apr 2002 21:41:03 -0500 (CDT) Original-Received: (qmail 29548 invoked by alias); 14 Apr 2002 02:40:48 -0000 Original-Received: (qmail 29543 invoked from network); 14 Apr 2002 02:40:47 -0000 Original-Received: from wri-dns0.wolfram.com (HELO wolfram.com) (140.177.205.10) by gnus.org with SMTP; 14 Apr 2002 02:40:47 -0000 Original-Received: from localhost.localdomain.wolfram.com (dmz5.wolfram.com [140.177.205.1]) by wolfram.com (8.11.2/8.11.2) with ESMTP id g3E10UX09753; Sat, 13 Apr 2002 20:00:32 -0500 Original-To: John H Palmieri X-Phone: 217-398-0700 x 234 X-Fax: 217-398-0747 X-Face: (|p=5paZ;5sn@$'yf[ [mc}h!^-.j\s}lz4KmZHnRi'$i-`JC-P93D'sYSvj'4k1+XR.77cYa%}0&)8"uqa(VuPRrboD>&J>w + (John H Palmieri's message of "Sat, 13 Apr 2002 15:49:12 -0700") Original-Lines: 63 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i586-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44283 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44283 On Sat Apr 13 2002 at 17:49, John H Palmieri said: > Speaking of spam, when I'm at work, I can run spamassassin and > everything is pretty much okay. At home, though, I get all of my > mail from a pop server. That is, my home machine receives no mail, > so I can forward incoming mail through procmail until I'm blue in > the face, but of course it has no effect. What can I do to filter > spam (or tag spam) with this setup? I run spamassassin as the next-to-last step of my nnmail-split-fancy, after messages have been matched against my whitelisted email addresses and headers. One caveat: call-process-region doesn't seem to play nicely with 8-bit characters in some circumstances. With this setup I get the ol' \201 in front of each one sometimes (and I haven't debugged it yet). Any advice for that? ---------------------------------------------------------------------- (setq nnmail-split-methods 'nnmail-split-fancy) (if (string= "billwlx" (getenv "HOSTNAME")) (setq spamassassin-script "/home/usr0/billw/bin/spamassassin/spamassassin" spamassassin-rules "/home/usr0/billw/bin/spamassassin/rules") (setq spamassassin-script "/home/billw/bin/SpamAssassin/spamassassin" spamassassin-rules "/home/billw/bin/SpamAssassin/rules")) (defun spamassassin-on-message () ;; use " *nnmail incoming*" while splitting crash-box (if (get-buffer " *nnmail incoming*") (set-buffer " *nnmail incoming*") ;; use gnus-original-article-buffer while respooling & tracing (set-buffer gnus-original-article-buffer)) (call-process-region (point-min) (point-max) spamassassin-script t t t "-P" "-c" spamassassin-rules) (goto-char (point-min)) (when (re-search-forward "^X-Spam-Status: Yes" nil t) "spamassassin")) (setq nnmail-split-fancy '(| ("to" ".*billw@wri\\.com" "spamtrap") (from ".*Dan Largent.*" "personal") (from ".*Michelle Largent.*" "personal") ("Subject" ".*Voice mail waiting for x.*" "voice-mail") [...] ("sender" "owner-ding@hpc\\.uh\\.edu" (: (lambda nil (format-time-string "gnus.%Y.%m")))) (any "owner-wri-\\b\\(\\w+\\)" "wri.\\1") (: spamassassin-on-message) (: (lambda nil (format-time-string "mail.misc.%Y.%m"))))) ---------------------------------------------------------------------- Hope this helps. Cheers - bw -- Bill White . billw@wolfram.com . http://members.wri.com/billw "No ma'am, we're musicians."