On May 1, 2006, at 15:06, David F. Skoll wrote:
Chris Myers wrote:
Instead of a command-line option to disable it, how about adding:
1) sub filter_headers() that is called before the body is even sent by
sendmail to mimedefang, and
2) sub filter_undecoded() that is called before the body is decoded.
Those aren't bad ideas, but possibly the simplest solution is this:
- If the filter does not define ANY of the routines filter_begin,
filter, filter_multipart and filter_end, then skip the whole
content-filtering phase.
How about this:
a) if filter_begin and/or filter_end are defined, then proceed as with
"filter_undecoded" -- the routines will be called, but the message will
not be decoded. filter_begin and filter_end will be operating on the
raw message only.
b) if none of them are defined, then the entire content filtering phase
will be skipped.
- A command-line option would still be useful for people who really
want
*no* body processing at all, because then we can turn off the milter
code
that transmits the body.
And, yeah, still do this too (which, I guess, would cause the above (b)
behavior even if the routines _were_ defined).
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang