David Rodgers wrote:

how hard would it be to add a seconf spam command check box .... for instance one checkbox that made it use one filter and
a different check box to use another?


Hi David,

I hacked mine to have two --enable-spam-commands: --enable-spam-command-local and --enable-spam-command-forward.

There was a little bit of work in user.c to allow it to insert the appropriate one into .qmail based on whether the "Routing" checkbox was for "Standard" delivery or "Forward" delivery and to fix the list of forwards (nforward) to play both ways (i.e. with/without & and \n). The vast majority of the work is in all the files used to actually configure and build qmailadmin. I think I had to change five of them to get it to accept the new configure options and to pass them correctly. I'm not a c programmer but the code is written well enough for even me to follow and modify (good job, Tom).

I don't really think anybody really wants to implement this in qmailadmin but if you don't mind hacking your own version I have a set of patches that, if you are interested, I will send you off-list. You might be able to apply them to your needs.

fwiw,
Mike Wright



Reply via email to