I can e-mail you a complete copy of the script ... it's too long to post here.
However, here are a few relevant snippets of an abridged version:
BEGIN {
# mailTemp array counter
m = 0
}
{
# Add to temp mail array
mailTemp[m++] = $0
# begin a series of over 100 regexps...
Hi,
I'm writing a pretty involved spam filter in awk ... so far so good, for the most part.
Basically, the program reads in a queued mail file, stores each line in an array:
tempMail[i++] = $0
... then scans each line against several spam regexps, and then in the END portion of the script...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.