[Mimedefang] Date
Rich West
Rich.West at divatv.com
Fri Mar 15 11:33:39 EST 2002
I am sure this is possible. I mean, heck, this is PERL. :)
You'd have to write a routine which would:
o parse the file "./HEADERS" for "^Date:"
o grab the formatted date
o convert it to UNIX time format
o then do a check to see if it falls within an acceptable range (not
greater than today or less than 30 days, or something similar)
o take the appropriate action of either delivering it as is or tagging
it as SPAM.
Not hard really.. it might be expensive as far as processing goes,
though, but it is a good idea. If it can be optimized and written to be
bullet-proof, it might prove to be a really good addition to the
'default' filter. :)
-Rich
J.P van Oyen wrote:
>
> Is there a good method to check the date of a mail ?
>
> What I am looking for is to eliminate mails dated in the future and in
> the past.
>
> I am getting mails that stay on top of the mail list so its always
> first until the date has past I found this is 99.999 % spam stuf.
> Also it happens a few times a week that I get mail from older dates
> that I want to bounce as the date is to old.
>
> Question is can mimedefang help me out on this ?
>
> Any comments or idea's......
>
> Cheers....
>
--
Richard West mailto:richard.west at divatv.com
Sr. Systems Administrator
Diva - Princeton, NJ http://www.divatv.com
More information about the MIMEDefang
mailing list