procmail
[Top] [All Lists]

Re: spam spool format

1999-05-01 16:18:12
On Sat, 1 May 1999 13:28:44 -0700, Harry Putnam wrote:


I am a new subscriber, and new to procmail.  My computer experience has
been as a home user, no background or training.  I'm not exactly a
newbie but not very experienced either, so if I make stupid mistakes, 
don't shoot me.  

I'm a lifetime heavy construction worker.  Boilermaker by trade.  To
get an idea of what a "Boilermaker" does check out the URL in my sig.

Now to the subject line:

I'm running a .procmailrc that calls the spam.rc file shown below:


:0
{
        SPAM_LOG=${SPAM_LOG:-spam/spam.log}
        SPAM_SPOOL=${SPAM_SPOOL:-spam}
        FROM_ADDR=`formail -rtzxTo:`

        :0c
        $SPAM_SPOOL/.

# Here is where the files are sent to the spam folder.  
# The /. on the end of the line tells procmail to use MH-
# style mail files, which is one message, one file.  You 
# can get rid of that by removing the /. and then you 
# should get a standard mbox.

        :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)
}

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

mp
Reply-To:  michael(_at_)trollope(_dot_)org




_______________________________________________________
Get your free, private email at http://mail.excite.com/

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