[Mimedefang] filter based on From/To headers?

Damrose, Mark mdamrose at elgin.edu
Fri May 7 13:38:26 EDT 2004


> -----Original Message-----
> From: Kelsey Cummings [mailto:kgc at sonic.net]
> Sent: Friday, May 07, 2004 12:34 PM
>
> David, are there any circumstances when MD will not write out 
> a HEADERS
> file?  I've got mail passing through the system that my code in
> filter_begin doesn't seem to see.
> 
> ...
>    if ( open(HEADER, "<HEADERS") )
>    {
>         while(<HEADER>)
>         {
>                 next unless /^(To|From|Cc):/;
> 

To, From, and Cc are not case sensitive.
to: email at example.com
TO: email at example.com
are both valid.

Try:
                 next unless /^(To|From|Cc):/i;



More information about the MIMEDefang mailing list