1 message in net.sourceforge.lists.courier-maildrop[maildropl] Problem Report
FromSent OnAttachments
Hans FuchsAug 26, 2003 4:13 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Problem ReportActions...
From:Hans Fuchs (ha@enova.ch)
Date:Aug 26, 2003 4:13:08 pm
List:net.sourceforge.lists.courier-maildrop

Hi

I got a problem with tagged message delivery agent (tmda.net), here is what I think it is:

I'm feeding tmda from maildrop which relies on the SENDER environment variable being set. If I get a bounce the from <> is empty so the SENDER will be empty. When importing the SENDER variable maildrop will delete it again, because it is empty. Therefore it is not exported when calling tmda. TMDA wants the variable to be set, even if it is empty.

I did a quick fix for myself: varlist.C: (which works nicely)

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 don't know if this is a pratical solution. Maybe there should be some means of deleting vars from the filterlanguage. Or maybe I did something wrong?

Since I don't know if TMDA is the only software that relies on this, I don't see this as a bugreport or featurerequest. I just want you to know about the problem. I also told the TMDA people.

Best, Hans