[Mimedefang] Silently dropping mail?

Rajesh Bhandari BhandaR at mail.nlm.nih.gov
Thu Aug 21 15:37:01 EDT 2003


>>> kim.leandersson at chs.chalmers.se 08/21/03 02:42PM >>>
>The code from Rajesh Bhandari was just what I'm been looking for. Thank
>you very much!
>
>With little knowledge about mimedefang I have a question on a similar
>matter. How do I silently drop mails with a specific subject or sender?
>And is it possible to silently drop a mail that has been at a specific
>relay (not the last relay address)?
>

Actually, I went back through my archived messages, and found a message from Joseph Brennan that is much more complete than my little snippet.
http://lists.roaringpenguin.com/pipermail/mimedefang/2003-July/006636.html

And another message from Joseph Brennan that answers your question about parsing the mail header and looking at From:, Subject etc.  I'm planning to use this code in the near future too.  
http://lists.roaringpenguin.com/pipermail/mimedefang/2003-March/005030.html

Finally, just to clarify, if you want to parse on mail envelope entries (MAIL FROM: and RCPT TO:) you should use the MD filter_sender and filter_recipient routines.

Rajesh





More information about the MIMEDefang mailing list