Looks like the parsing for -e got broken when the option parser was
upgraded.   I remember making a mental note to check that when it was
upgraded and guess I forgot.


--- tmda-1.1.10/bin/tmda-rfilter        2007-01-17 22:49:44.000000000 +0100
+++ tmda-1.1.10/bin/tmda-rfilter        2007-02-23 11:06:27.000000000 +0100
@@ -81,7 +81,7 @@
 FILTER_INCOMING in ~/.tmda/config."""),
 
     make_option("-e", "--environ",
-                metavar="VAR=VAL", dest="environ",
+                metavar="VAR=VAL", dest="environ", action="append",
                 help= \
 """Add an environment variable on the command line.  VAR is the name
 of the variable, and VAL, separated by an '=', is its value.  There
@@ -141,11 +141,12 @@
 if opts.filter_incoming:
     os.environ['TMDA_FILTER_INCOMING'] = opts.filter_incoming
 if opts.environ:
-    try:
-        key, value = opts.environ.split('=', 1)
-        os.environ[key] = value
-    except (KeyError, ValueError):
-        parser.error('bad environment key-value pair - "%s"' % opts.environ)
+    for pair in opts.environ:
+        try:
+            key, value = pair.split('=', 1)
+            os.environ[key] = value
+        except (KeyError, ValueError):
+            parser.error('bad environment key-value pair - "%s"' % pair)
 if opts.vhomescript:
     if os.environ.has_key('EXT') and os.environ.has_key('HOST'):
         setvuserhomedir(opts.vhomescript)
_________________________________________________
tmda-workers mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to