Jason on TMDA list mentioned these threads:

See http://thread.gmane.org/gmane.mail.imap.courier.general/13703
    http://thread.gmane.org/gmane.mail.maildrop/1831

they quote this code which deletes empty env vars...:
and some external programs rely on the existance of those env's even if
empty!

The following snippet of code in the SetVar function in
maildrop/varlist.C illustrates this behavior:

        if (value.Length() == 0)        // Delete variable
        {
        Variable **v;

                for (v= &varlist[n]; *v; v= &(*v)->next)
                        if ( (*v)->name == var )
                        {
                        Variable *vv= (*v);

                                (*v)= vv->next;
                                delete vv;
                                break;
                        }
                return;
        }

They suggest:

xfilter "env VARIABLE=$VARIABLE /usr/local/bin/your-command"

WHICH SEEMS TO WORK?

BUT, Sam told me a little while ago that env didn't pipe std in (I was
delivering a cc to it to capture some stuff) so I thought that meant it
wouldn't work here...

Confused...

m/
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mitch
(WebCob)
Sent: Tuesday, January 13, 2004 9:56 AM
To: [EMAIL PROTECTED]
Subject: [courier-users] Does courier / maildrop unset SENDER if it's
empty?


I'm trying to call TMDA, and I get an error that SENDER is not set during
one of it's processes... it IS set during the others... the difference in
the messages (from the logs) is that in this case from is showing as <>

Someone on the TMDA list says it is maildrop unsetting the RMPTY env vars...

I tried changing my code to reset it, but it isn't working (syntax error)

to "| SENDER='$SENDER' /usr/local/tmda/bin/tmda-filter"

Any ideas?!

Thanks!

m/



-------------------------------------------------------
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



-------------------------------------------------------
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