procmail
[Top] [All Lists]

Re: spam spool format

1999-05-02 13:25:43
On Sun, May 02, 1999 at 01:12:07PM -0600, Dale wrote:
| Do you mean like so:
| 
| 
| 
| :0
| {
|         SPAM_LOG=${SPAM_LOG:-spam/spam.log}
|        # SPAM_SPOOL=${SPAM_SPOOL:-spam}
|         FROM_ADDR=`formail -rtzxTo:`
| 
| 
| 
|         :0c
|     spam.spool
| [...}
| 
| Or something else?  Trying the above rendition seems to disable it
| altogether.

I think it's the dot that's messing it up. If you insist on using the word 
"spool," try this:

        :0c
      spam-spool

I'm not a Procmail guru; I don't understand the need, in this case, to set 
the 
"SPAM_SPOOL" variable. Do you have another recipe file that uses it?  Anyway, 
I 
would simply put your spam msgs into a regular mail folder (leave out the 
'dot' 
in the folder name, as suggested earlier).


Before posting I tried just plain file names like "spam" it makes no
difference.  the Spam.rc file is still disabled with those proposed
changes. I only used the "spool" suffix because my normal mail and
news client, Emacs-Gnus" looks for procmail generated files with a
".spool" suffex by default.

The .procmailrc file has the `.spool' extension and seems to cause no
problems.

I got these files, or a version of them off the "net", then edited
them for my use, so make no claims to knowing much about what I'm 
attempting here.

The .procmailrc that calls "spam.rc" now looks like below and does
work so far as splitting the mail to those files.


# #v1.02-universe 1998/04/16 Mike Rose <mbr(_at_)universe(_dot_)digex(_dot_)net>
# #LOGFILE=procmail.log
# #VERBOSE=ON
# SHELL=/bin/sh
# PATH=/usr/local/bin:/usr/bin:/bin
# 
# MY_ADDR=$LOGNAME(_at_)universe(_dot_)digex(_dot_)net
# MY_ADDR_REGEXP=$LOGNAME(_at_)universe\(_dot_)digex\(_dot_)net
# 
# :0h
# * $ !^(To|Cc|From|Sender):.*$MY_ADDR_REGEXP
# { INCLUDERC=refuse-mail-not-to-me.rc }
# ####

LOGFILE=.procmail.log
VERBOSE=ON
:0 c
* ^Subject:.*\[ad\]
|awk '/inet addr/{print $2}'|sed 's/addr://' >~/ADDR/ia && date >>~/ADDR/ia
  
     :0 A
    ADDR/AD_FILE      

:0h
* !^(To|Cc|From|Sender):(_dot_)*reader(_at_)newsguy
* !^(X-loop|^Resent-From):
* !^(Return-Path|Sender):.*owner
{ INCLUDERC=spam/spam.rc }

:0
* ^X-Loop:(_dot_)*apollo-list(_at_)redhat
* ^Subject:.*Re: 
MAILx/RE-APOLLO.spool

:0
* ^X-Loop:(_dot_)*apollo-list(_at_)redhat
* ! ^Subject.*Re: 
MAILx/APOLLO.spool


:0
* ^X-Loop:(_dot_)*mailhelp(_at_)moongroup
MAILx/MOON.spool

:0
* ^Return-Path(_dot_)*owner-ding(_at_)hpc
MAILx/DING.spool

:0
* ^X-Loop:(_dot_)*procmail(_at_)informatik
MAILx/PROCMAIL.spool

:0
* ^To: 
MAILx/MAIL2.spool





-- 
Harry Putnam reader(_at_)newsguy(_dot_)com  
Running Redhat Linux-5.2
See http://www.jtan.com/~reader  for a brief pictorial 
saga of construction work in the trade of "Boilermaker"

<Prev in Thread] Current Thread [Next in Thread>