ciop,
I see that you appear to want to filter for common virus types. Wanting to kill the attachments, but still be able to check out the message. I have not done anything like that myself- my experience is limited to file servers and complex auto-responders.
I did some searching for you and found something that I think will work for you, it's called the E-mail Sanitizer, and it's web page can be found here:
http://www.impsec.org/email-tools/pr...-security.html
There is also a procmail email list that was very helpful to me when I was putting my proc stuff together, it can be found here:
http://www.procmail.org/era/lists.html
Also, at the link above, is SmartList, which may be of interest as well.
Sorry that I don't have a quick answer for you! Please let me know what you find out and how it is that you implement your rc script.
plan9