Is there a way to check body for specific text like say if it had the text of a specific domain (viagra.com), to discard the message?
Someone used my email address as a envelope from address to spam and I keep getting bounced messages. I haven't figured out how to do this in mimedefang, but in postfix, I just use /etc/postfix/body_checks and have in the file something like:
/some text/ DISCARD SPAM
I would like to have a similar setup in Mimedefang.
I'd guess that you can use $entity argument (which is of type MIME::Entity, see documentation for details) to access body of the message (or just a particular part) in filter, filter_multipart, and filter_end functions. Then, just do substr or regex match on it. The advantage of doing it in filter would be that than you can program it to search only text/plain and text/html parts, and skip large binary attachments and such.
-- Aleksandar Milivojevic <[EMAIL PROTECTED]> Pollard Banknote Limited Systems Administrator 1499 Buffalo Place Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7 _______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

