4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Setting environment v...
FromSent OnAttachments
Courier UserNov 16, 2003 5:07 pm 
Matthias AndreeNov 17, 2003 6:29 am 
Courier UserNov 17, 2003 7:02 am 
Courier UserJan 15, 2004 4:45 am.patch
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:Re: [maildropl] Setting environment variable in maildrop to "" deletes it?Actions...
From:Matthias Andree (ma+c@dt.e-technik.uni-dortmund.de)
Date:Nov 17, 2003 6:29:46 am
List:net.sourceforge.lists.courier-maildrop

Courier User <cour@asfast.net> writes:

Even though maildrop appears to treat these two cases identically, child processes invoked via xfilter and other means could have problems with this. This happens because environment variables are inherited by child processes, which in the general case cannot be counted on to look at these two instances as being equivalent ... and in quite a few common cases, they do not. ... Thoughts?

Check out the env(1) command.

Untested:

xfilter 'env VARIABLE= /usr/local/bin/your-command'

Encrypt your mail: my GnuPG key ID is 0x052E7D95