[Mimedefang] Accessing header from within filter()...

David F. Skoll dfs at roaringpenguin.com
Tue Sep 11 14:43:58 EDT 2012

On Tue, 11 Sep 2012 12:33:53 -0600
Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:

> If $entity points to the mime section of the body that's being
> scanned, how do I get back to the root entity?

You can't directly, but the root entity is passed as an argument to
filter_begin().  If you copy it to a variable visible to filter(), you can
reference it from filter().

MIMEDefang guarantees that:

filter_begin / filter / filter / ... / filter / filter_end

all happen in sequence in the same process.

Or, you could just open and read the file ./HEADERS



More information about the MIMEDefang mailing list