"Jason R. Mastaler" <[EMAIL PROTECTED]> writes:

> Tim, how difficult would it be to extend the tag action to take a flag
> such as -message_from_style so that one could override the default
> MESSAGE_FROM_STYLE setting for a particular header?  This would allow
> me to do something like:

Leaving aside the parser for the moment (this is certainly possible to
implement there), the weirdest thing may be that the actions
dictionary (that Drew hates so) gets even weirder looking.  Each
element in the dictionary would gain either a dictionary or list of
tuples to hold the arguments.

This would be OK if it were restricted to FilterParser, but that
actions dictionary is the thing that gets returned from firstmatch()
back to tmda-inject.  The code that then uses that structure to tag
addresses is actually in tmda-inject, so that would need to be
modified to make this work.

Nothing's impossible, but it is a bit more work than just adding a
couple of lines to the parser.

Also, the filter file syntax is gradually creeping towards gnarly and
putting options on header names starts to tickle my itch to simplify
it.

However, if it's important, I can do it.

Aos, if we wish to ponder, yea even to discuss the filter rule syntax,
I would interested in what others think.


Tim
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to