On Wed, May 05, 2004 at 04:10:46PM -0500, Michael Sims wrote:
> Kelsey Cummings wrote:
> > I need to check for 'invalid' From and To headers in our inbound email
> > (primarily to catch spam that inserts '[EMAIL PROTECTED]' into
> > either header.)  Does anyone have an example of how they did this or
> > pointers on where to wedge it in?
> 
> You basically need to open and traverse the "HEADERS" file that will be in the
> current working directory during each slave's call to filter_begin() or
> filter_end().  You can put the check in either sub, depending on what you want to do
> with the email and the flow of your filter code.  Here's one possible (untested)
> example:

<snip>

Thanks.  I was hoping that all of the headers would already be available in
process and that I wouldn't have to use IO to read them in.


-- 
Kelsey Cummings - [EMAIL PROTECTED]           sonic.net, inc.
System Administrator                      2260 Apollo Way
707.522.1000 (Voice)                      Santa Rosa, CA 95407
707.547.2199 (Fax)                        http://www.sonic.net/
Fingerprint = D5F9 667F 5D32 7347 0B79  8DB7 2B42 86B6 4E2C 3896
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to