[Mimedefang] Filtering on sender, recipient, and subject at t he same time

Damrose, Mark mdamrose at elgin.edu
Thu Jul 7 13:14:37 EDT 2005


> -----Original Message-----
> From: McCarthy, Douglas J

> The 
> logic I'm using in the filter_recipient subroutine in 
> mimedefang-filter is basically:

> Second off, $Subject isn't available from within 
> filter_recipient.  This would be okay, if I could egrep for 
> the subject from the HEADERS file...
> but I can't, because of the "No such file or directory" error above.
> 
> Any help you could give me would be greatly appreciated!

filter_recipient fires as each recipient is specified and before the message
body.  The headers (including subject) are part of the message body.
MIMEDefang can't give you information that doesn't exist yet.  This logic
needs to move somewhere else, such as filter_begin or filter_end.



More information about the MIMEDefang mailing list