procmail
[Top] [All Lists]

spam spool format

1999-05-01 13:35:42

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

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

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

This file sends suspect messages to a dir <spam> in numbered
individual files like so:  ~/spam/1 2 3 4  etc.  The line:
SPAM_SPOOL=${SPAM_SPOOL:-spam}  being the one that does that (I think). 

I'd rather have the messages appended to a spool type file, or really
just a "unix-message-format" file.

With that format I can open the spam spool with "mail" "mutt"
"emacs-rmail" etc etc.  view, delete etc as needed.
The current setup leaves a spam dir with individual files for each
message, which is not recognized by the above mentioned apps.

My problem is that I don't understand the syntax in spam.rc enough to
tell it to make the kind of file I want.

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