[Mimedefang] MimeDefang Framework

Jeff Rife mimedefang at nabs.net
Tue May 29 18:28:11 EDT 2007


On 29 May 2007 at 17:32, Dave O'Neill wrote:

> On Tue, May 29, 2007 at 05:04:33PM -0400, Jeff Rife wrote:
> > 
> > That's all you need to do unit testing for your MD filter.  The chunk 
> > you are testing stands alone...it does not need MIMEDefang to run.
> > 
> 
> Well... not quite true.  Most filters will make calls against MIMEDefang
> code, so testing your filter in a fully standalone environment will
> require some test scaffolding.  Otherwise, your tests will die with
> errors like "Undefined subroutine &main::action_add_header called at..."

That's precisely what I did for several of the functions, and is pretty 
standard for unit testing.

With the complex interactions of sendmail plus MD, you pretty much have 
to break out filter code and assume that the code inside mimedefang.pl, 
mimedefang, and mimedefang-multiplexor is correct until proven 
otherwise.


--
Jeff Rife |  
          | 
http://www.nabs.net/Cartoons/OverTheHedge/BrokenInternet01.gif 





More information about the MIMEDefang mailing list