However when couriermlm runs, EXT still contains its original value, so
couriermlm reads EXT, and will not understand the command.
I don't understand. If I have a .courier-default or a
.courier-anand-default, EXT contains the string "anand-help" in both
cases, so I would expect that couriermlm, when run out of either file,
I meant DEFAULT. couriermlm reads DEFAULT to determine the control command.
'anand-help' is not a valid control command. 'help' is, but 'anand-help'
Thanks! I understand now. I changed my code to do DEFAULT=EXT2. I
also changed the code to open a pipe directly to couriermlm instead of
relying on dynamic delivery, and now it works. I now only have a single
.courier-default, containing "|./wrapper" and creating and deleting
lists has become easier :) If anyone's interested, find my finished
if os.environ['EXT2'] == 'owner':
# dispatch to list owner
command = sendmail + ' -f "' + os.environ['SENDER'] + '" ' + owneraddress
elif '-' in ext:
# dispatch to list controller
command = mlm + ' ctlmsg ' + string.split(ext,'-')
# address has no special actions, so likely a list
# dispatch to list
command = mlm + ' msg ' + ext
# DEFAULT contains listname-command. Change it to contain the command only