Roland <[EMAIL PROTECTED]> writes:

> --On Dienstag, 13. Januar 2004 12:37 -0800 "Mitch \\(WebCob\\)"
> <[EMAIL PROTECTED]> wrote:
>
>> Hi Roland - thanks - but if you read the followups I got it to work - the
>> problem is that courier DELETES empty env's which have to be forced before
>> calling programs that depend on their existance - not the value they
>> contain.
>> 
>> cc "| env SENDER='$SENDER' /usr/local/tmda/bin/tmda-filter"
>
> was:
>
>>> to "| SENDER='$SENDER' /usr/local/tmda/bin/tmda-filter"
>
> I referred to the single quote which will prevent any variable
> expansion under sh. Test for yourself:
>
> $ SENDER='$SENDER' env | grep SENDER
>
> I am surprised expansion within single-quotes works with env...

It's because the variable $SENDER is expanded by _maildrop_ as the "cc"
command is being generated.

The command that gets passed to the shell, therefore is this:

  env SENDER='' /usr/local/tmda/bin/tmda-filter

(assuming that SENDER is unset or the null string)


> But the point is still there: TDMA is supposed to return challenges
> to unknown senders which is just not possible with bounces.
> And tdma especially trolls for bounces with exactly those challenges.
>
> The line in .mailfilter should be something like:
>
> cc "| test \"$SENDER\" && tdma-filter"

TMDA functions properly if the SENDER variable is "" (empty string)
as opposed to being completely unset.  The "cc" command above works
fine.



-- 
 Courier User
 [EMAIL PROTECTED]



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to