procmail
[Top] [All Lists]

Re: spam spool format

1999-05-02 16:23:08
On Sun, 2 May 1999 10:00:51 -0700, Harry Putnam wrote:

On Sat, May 01, 1999 at 04:02:36PM -0700, Michael Powe wrote:
On Sat, 1 May 1999 13:28:44 -0700, Harry Putnam wrote:

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.


On Sat, May 01, 1999 at 04:02:36PM -0700, Michael Powe wrote:
On Sat, 1 May 1999 13:28:44 -0700, Harry Putnam wrote:

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.

Trying this recommendation seems to generate a different format that is
still in "one file per message but has the format:
"msg.IX02" "msg.JX02" etc.  Still not in Unix message format    

Below is what I now have. Is this what you meant?

Yes.  I'm at work & can't check it but my understanding of the syntax 
`SPAM_SPOOL=${SPAM_SPOOL:-spam}' is that it means that if $SPAM_SPOOL is not
already set, then use `spam' as the default.  At any rate, the effect of the
line is to make `spam' the folder.  If you have a directory called spam, it
may bugger this matter up.  When I set up my spam blocker, it somewhat more
politely put spam into the inbox when I did something similar (I <wanted> MH
style messages because I use MH, but it does not support the MH style).  You
can just change `:-spam' to `:-spam.block' or something like that.  Or, in
your environmental declarations at the top of the file, put in
SPAM_SPOOL=spam.block or something similar (assuming I'm right about the
syntax).  The latter would probably the more appropriate method, since
that's the entire idea behind using envars, anyway.

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>