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