Two days ago I posted a patch to Courier which fixed this maildrop
problem, where variables that are set to "" (empty string) are
completely deleted from the environment.  And yesterday, Sam applied
that patch to the maildrop that comes latest Courier release:
courier-0.44.2.20040114.

See below for a description of the exact changes that I made.

As far as I know, this patch has not yet been made to the stand-alone
maildrop release.  I suppose that it will soon be applied to that
software, as well.  Nonetheless, I will soon go to the maildrop mailing
list and post my patch.  I

By the way, if you go to the courier or maildrop mailing lists to look
for this patch, look for recent messages posted by "Courier User", which
is the name I use on both of those lists (long story).

The maildrop change works like this:

- The following construct no longer deletes the enviroment variable:

     SENDER=""

  Rather, this variable now properly contains an empty string.
  Therefore, in maildrop, the following rule can be applied
  (error and exception checking is left out here):

     import SENDER     # causes maildrop to notice SENDER, if it's set
     SENDER="$SENDER"  # forces null string, even if SENDER was unset
     xfilter "/usr/local/tmda/bin/tmda-filter -p"

  It can also be done this way:

     import SENDER     # causes maildrop to notice SENDER, if it's set
     SENDER="$SENDER"  # forces null string, even if SENDER was unset
     to "!/usr/local/tmda/bin/tmda-filter"  # or "cc"

- There is now an "unset" command in maildrop:

     unset VAR  # completely removes VAR from the environment

-- 
 Lloyd Zusman
 [EMAIL PROTECTED]

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to