procmail
[Top] [All Lists]

Re: spam spool format

1999-05-02 10:19:45
On Sun, May 02, 1999 at 09:12:43AM -0600, Dale wrote:
|         SPAM_LOG=${SPAM_LOG:-spam/spam.log}
|         SPAM_SPOOL=${SPAM_SPOOL:-spam}
|         FROM_ADDR=`formail -rtzxTo:`
| 
|         :0c
|         $SPAM_SPOOL/.
| 
|         :0
|         * ^To: *\/[^ ].*
|         { TO_ADDR=$MATCH }
| 
|         :0
|         * ^Subject: *\/[^ ].*
|         { SUBJ=$MATCH }
| 
|         :0
|         * ^Message\-ID: *\/[^ ].*
|         { MSID=$MATCH }
| # original seperators were (:) colons.  changed to ** [hp]
|         :0h: $SPAM_LOG$LOCKEXT
|         | (echo "`date` ** $FROM_ADDR ** $TO_ADDR ** $SUBJ ** $MSID" >> 
$SPAM_LOG)
| }


I think I would just comment out the 'SPAM_SPOOL' variable (with #), then 
change 
the first recipe so that it puts spam into its own folder:

         :0c
         SPAM

-Dale-
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.


-- 
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>