Date: Thu, 11 Apr 2002 20:07:00 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Peter Leftwich <Hostmaster@Video2Video.Com> Cc: Eduardo Viruena Silva <mrspock@esfm.ipn.mx>, FreeBSD Questions <FreeBSD-Questions@FreeBSD.Org> Subject: Re: spam [procmail recipe] Message-ID: <Pine.BSF.4.21.0204111958120.2201-100000@wonkity.com> In-Reply-To: <20020411201205.S76809-100000@earl-grey.cloud9.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 11 Apr 2002, Peter Leftwich wrote:
> The problem with this procmail recipe is that some of your friends may use
> a BCC from time to time and these messages will get delivered to your bulk
> mail or "Spam-folder" by mistake.
Right. That's why you have procmail recipes that detect "approved"
addresses through *before* spam detection recipes in your .procmailrc.
For example, here's a relatively recent recipe that's near the top of my
.procmailrc:
# FreeBSD Questions Mailing list
:0
* freebsd-questions@freebsd.org
$MAILDIR/FreeBSD-Questions
This rule detects email from the FreeBSD mailing list and sorts it into
its own folder.
> > # Mail not addressed to me.
> > :0
> > * $!^((Resent-|Apparently-)?(To|Cc|Bcc)):.*${LOGNAME}
> > $MAILDIR/Spam-folder
>
> Hey Warren, and list, do you know the usage for the line above beginning
> with "* $!..." so that I can list multiple matches, using some kind of "OR"
> statement (maybe "email1@otherdomain.com|email2@domain.com|email_etc@abc.com")?
Multiple recipes are easier to maintain, and give you the same
"or" mechanism. Add one for each person you want to explicitly "let
through".
> By the way, instead of the "$MAILDIR/Spam-folder" line you could put
> something like /dev/null or "|formail -b postmaster@...." if you want to
> get real technically-combative and cocksure (word choice?)
I don't trust automated scripts enough to let them delete mail except in
rare cases, but yes, that can be done.
-Warren Block * Rapid City, South Dakota USA
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0204111958120.2201-100000>
