[Esa-l]suggestion for making html-trap.procmail easier to read

John D. Hardin jhardin at impsec.org
Fri Jul 6 19:41:15 PDT 2001


On Fri, 6 Jul 2001, Alois Treindl wrote:

> The sanitizer filter html-trap.procmail contains several lengthy
> perl scripts which are directly imbedded in the filter. This makes
> the filter hard to read, and whenever an error occurs with one of
> the script, procmail dumps the complete perl script into
> procmail.log, which makes very little sense.
> 
> It would be better to move each of these perl filters into a
> separate file, and call it as a secondary filter.

I'm aware of that. The original version was a great deal smaller, and
I'm a little reluctant to break it up because at the moment it is
self-contained.

However, as you see, there are definite limits to how far this model
can be taken, and definite drawbacks (e.g. it's pretty much write-only
code... :)

I'm working on a version that's a standalone perl script, with lots of
feature enhancements, but I'm beginning to wonder if a higher priority
would be to split the script out of the procmail file for 1.x

--
 John Hardin KA7OHZ   ICQ#15735746   http://www.wolfenet.com/~jhardin/
 jhardin at wolfenet.com      pgpk -a finger://gonzo.wolfenet.com/jhardin
  768: 0x41EA94F5 - A3 0C 5B C2 EF 0D 2C E5  E9 BF C8 33 A7 A9 CE 76 
 1024: 0xB8732E79 - 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  In 1998 more than three times as many people in the US were killed
  by incompetent physicians than were killed by handguns, yet the
  President of the A.M.A. is adopting "gun safety" as his platform.
-----------------------------------------------------------------------
   1215 days until the Presidential Election



More information about the esd-l mailing list