Tim Legant <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] writes:
>
>> This has been brought up before, but as far as I know there is no
>> way to add dynamic/shell escaped headers in the TMDA outgoing filter.
>
> I suggested this in October 2002 and we couldn't come up with a real
> need, so we "de-prioritized" it. <wink>  Last night Jason and I were
> talking about adding it back in precisely because of this (HashCash).
>
>> I had quick peek at the source, and it seems syntax along the lines of
>>
>> to * tag 
>>      X-hashcash shell="hashcash -b20 $RECIPIENT_ADDRESS"
>>
>> would not be too hard to add.  Although I don't know much about how
>> the variable interpolation would work.
>
> The mechanics of variable interpolation in the filter parser are such
> that the above would work, if RECIPIENT_ADDRESS were defined in the
> config file or in the environment.

Whoops, I missed this... the filter only understands the verbose
method of specifying shell variables, ${name}, so ${TMDA_RECIPIENT}
would need to be used, not $TMDA_RECIPIENT.  I did this because the
parser doesn't lex, in the classical sense.  It has no contextual idea
what it's interpolating and, without the added hint of the braces,
would merrily attempt a substitution on every $text that it found.


Tim

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

Reply via email to