procmail
[Top] [All Lists]

Procmail/formail question

2001-05-17 15:07:30
CONDITION:
I have procmail scanning all locally delevered
messages. I also use procmail to filter my private
messages.

I have a recipe that works. I added a formail statment
to add a header to the mail message (that also works).
the problem is that the log file shows additional
lines which I would like not to log when the formail
statment is added.

======
etcprocmail lines

SHELL=/bin/sh
PATH=/usr/local/SOLARIS/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:
LINEBUF=4096
ORGMAIL=/var/spool/mail/$LOGNAME
JUNKDIR =       /var/junkjunk
UMASK = 000
# ----------- "spam" series configuration
trash_header="X-Procmail: unwanted"
good_header="X-Procmail: wanted"
# -----------
LOGABSTRACT=all
LOGFILE=/var/tmp/Proclog_`date +%y_%m_%d`       #Logs message disposition.
VALUE = "NULL"
VERBOSE = yes

=============
recipe in question

:0
* ^Resent-From:(_dot_)*(_at_)usa(_dot_)com(>)?
{
VERBOSE=NO
LOGABSTRACT=off
   :0 fhw
   | formail -b -f -A "$good_header resend OK"

   :0
   { VALUE=GOOD }

VERBOSE=yes
#LOGABSTRACT=all
}

# deliver to junkdir of BAD
:0:
* $VALUE ?? BAD
$JUNKDIR

============================
Log entries

procmail: Match on "^Resent-From:(_dot_)*(_at_)usa(_dot_)com(>)?"
procmail: Assigning "VERBOSE=NO"
procmail: No match on "BAD"
# BEGINNING of extra logged lines
procmail: Rcfile: "/usa/marshal/.procmailrc"
procmail: Assigning "MAILDIR=/usa/marshal"
procmail: Assigning "SHELL=/bin/sh"
procmail: Assigning 
"PATH=/usr/local/SOLARIS/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:"
procmail: Assigning "VERBOSE=yes"
procmail: Assigning "MAILDIR=/usa/marshal/mail"
procmail: Assigning "DEFAULT=/var/spool/mail/marshal"
procmail: Assigning "LOGABSTRACT=all"
procmail: Executing "date,+%y-%m-%d"
procmail: Assigning "LOGFILE=/usa/marshal/mail/Proclog.01-05-17"
procmail: Assigning "LASTFOLDER=/usa/marshal/mail/Proclog.01-05-17"
procmail: Opening "/usa/marshal/mail/Proclog.01-05-17"
# ENDING of extra logged lines
=====================

In the recipe are extra lines I used for testing
(LOGABSTRACT and VERBOSE). These lines made no
difference.

It may seem like the few logged lines are nor big deal,
but If I have formail add extra header lines to other
messages, the log will grow faster that I would like.

QUESTION: is the formail statment causing the extra
logged lines? How can I stop the extra lines from being
logged?

-- 

Keep Well

=-=-=-=-=
 Marshal
=-=-=-=-=


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • Procmail/formail question, Marshal Benton <=