If you filter your mail with procmail before it reaches TMDA, you could send two copies to TMDA if it matches your [EMAIL PROTECTED] You could inject a custom header into each. Then, in your TMDA incoming, have it look at that custom header, and if it matches one way, do the bounce, if it matches the other way, deliver it to the spam box. As a simpler approach, just have one copy go to TMDA with your custom filter, and have procmail deliver the other to the spam box. Then you don't launch it twice for one message.

-Jared

On Apr 10, 2004, at 11:31 AM, Lloyd Zusman wrote:

Is there a way to have TMDA invoke multiple actions for a given message?
I'm looking to do something like this:


[ ... ]

No, but this is on the TODO list.

OK. I'll be patient.


Hmm ... as an alternative, is there a way to call a TMDA utility from
the command line to force a message to be rejected using one of TMDA's
bounce templates?

For example, suppose I have this filter rule:

from [EMAIL PROTECTED] deliver=|/path/to/myscript

... where 'myscript' looks something like this (grossly oversimplified):

  #!/bin/sh
  tee -a $HOME/.foo-bar | special-TMDA-utility args

... and where 'special-TMDA-utility args' is the invocation of some sort
of utility which bounces the message back to its sender in exactly the
same way as the 'bounce' action does within a TMDA rule; i.e., using
one of the TMDA bounce templates to generate the response.



-- Lloyd Zusman [EMAIL PROTECTED]

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users


_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to