>> On Wed, 4 Aug 1999 12:49:56 -0400,
>> [EMAIL PROTECTED] said:
J> What I'd like to also do is learn how to filter stuff thats not
J> specifically addressed to me with procmail.
I've included a small .procmailrc file which does that below. You can
add additional checks, and then make your final disposition decision
based on how many "X-Spam" headers you end up with.
Good spam and procmail information can be found here:
http://www.best.com/~ariel/nospam/
http://www.hrweb.org/spambouncer/spambnc.tar.Z
http://www-new.hrweb.org/spambouncer/proctut.shtml
J> ... it seems that procmail needs some tweaking to work with qmail.
I've never had a problem using qmail with procmail, delivering to a
regular mailbox. My ~/.qmail file looks like this:
| preline /usr/local/bin/procmail
If I want a copy of an outgoing message, I include the header
"Bcc: vogelke-bcc"
which makes use of the ~/.qmail-bcc file:
| (preline /bin/cat; echo) >> $HOME/mail/sentmail
This way, I see the actual message as created by qmail. I also like to
keep track of messages I've sent recently (even if I don't need a copy
of the whole thing), so I include the header
"Bcc: vogelke-header"
which makes use of the ~/.qmail-header file:
| (preline formail -XFrom: -XSubject: -XDate: -XTo: -XMessage-ID: ;
echo) >> $HOME/mail/SENT.`/bin/date +%Yw%W`
All on one line, of course.
--
Karl Vogel
ASC/YCOA, Wright-Patterson AFB, OH 45433, USA
[EMAIL PROTECTED] or [EMAIL PROTECTED]
The Uniform Commercial Code protects the innocent purchaser, but it is not a
shield for the sly conniver, the blindly naive, or the hopelessly gullible.
--Ruling in Atlas Auto Rental Corp. v. Weisberg,
N.Y. City Civ. Ct. 1967
---------------------------------------------------------------------------
# Search path.
PATH=/bin:/usr/bin:/usr/local/bin
# Current directory while procmail is executing. All pathnames are
# relative to this directory.
MAILDIR=$HOME/mail
# File containing error messages or diagnostics. If this file does not
# exist, then said messages will be bounced back to the message sender.
#LOGFILE=$MAILDIR/MAILLOG
# If yes, keep an abstract of the From and Subject lines of each delivered
# message, the folder it was delivered to, and the size of the message.
# If no, skip this abstract.
#LOGABSTRACT=yes
# If on, describe actions of procmail in detail.
#VERBOSE=on
# Number of seconds before procmail zaps a lockfile by force.
LOCKTIMEOUT=1
# Default shell and umask value.
SHELL=/bin/sh
UMASK=022
#--------------------------------------------------------------------------
# Flag anything not addressed to me.
:0 f
* !^TO_.*vogelke
| formail -A "X-Spam: not addressed to me"
# other rules here...