[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Blocking mail by subject.
"Mike Almogy" <lizard@macam98.ac.il> writes:
> I dig up the script that blocks mails by subject.
> It works fine, BUT, is there a way to put the subjects in a file like the
> /etc/mail/access.db file ?
It is not clear to me what script you are using, but I am fairly
sure you can do something like this with procmail/formail/egrep.
In .procmailrc write sth like (UNTESTED!!! POSSIBLY BUGGY!!!):
:0 h
| formail -xSubject: | egrep -f /etc/mail/spamdb - >/dev/null
RTFM.
--
Oleg Goldshmidt <ogoldsh@NOSPAM.netvision.net.il>
"Inventions ... cannot, in nature, be a subject of property."
T. Jefferson.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il