Hi

Here is the solution: (From maildrop's varlist.C)

void SetVar(const Buffer &var, const Buffer &value)
{
...
// Zero length vars shouldn't be deleted. They have to be set in the
// Environment - Hans Fuchs
/*      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;
        } */
...
}

I think I can't submit that as a patch. I would have to introduce some
means of deleting variables in the maildrop scriptlanguage.. too hard for
me. So I'm going to send a bugreport.

Best,
        Hans

On Tue, 26 Aug 2003, Jason R. Mastaler wrote:

> Hans Fuchs <[EMAIL PROTECTED]> writes:
>
> > It seems that maildrop only sets environment vars that are not equal
> > "".  So this is going to be maildrop patch. I'm going to look at the
> > sources.
>
> I see.  Let us know what happens.
> _____________________________________________
> 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