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

kd6lvw at yahoo.com kd6lvw at yahoo.com
Tue Sep 11 19:55:01 EDT 2012


--- On Tue, 9/11/12, Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:
> On 9/11/12 12:43 PM, David F. Skoll wrote:
> > 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().
> 
> Would it be worthwhile making it visible via a persistent
> global variable via filter_begin()?
> 
> Does that seem a reasonable addition?

Absolutely NOT.

You've already been told that the item you want is available in filter_begin() and that all 4 filter*() functions are called in the same context and can pass variables to each other.  If you need it, YOU save the value in your local filter processing script.

All MimeDefang does is provide a MINIMAL framework.  It's up to you to use it.  Don't expect the rest of us to accept your pollution of minimality.


More information about the MIMEDefang mailing list