"Jason R. Mastaler" <[EMAIL PROTECTED]> writes:

> After upgrading my list server to 0.60, the `from-mailman' rules
> stopped working.

Doh!  It was a logical thinko.  Sorry about this.

Jason, could you try the following patch (I have no mailman
installation, which I probably should change at some point...) and
check it in if it fixes the problem?

Unfortunately I have to run right now.


Tim

--- /home/thl/tmda/TMDA/FilterParser.py	Fri Aug 16 17:40:02 2002
+++ FilterParser.py	Mon Aug 19 15:23:04 2002
@@ -888,6 +888,7 @@
                 # Find the Mailman configuration database.
                 # 'config.db' is a Python marshal used in MM 2.0, and
                 # 'config.pck' is a Python pickle used in MM 2.1.
+                try_open = 1  # Try to open file.
                 config_db = os.path.join(match, 'config.db')
                 config_pck = os.path.join(match, 'config.pck')
                 if os.path.exists(config_pck):
@@ -896,7 +897,11 @@
                 elif os.path.exists(config_db):
                     dbfile = config_db
                     import marshal as Serializer
-                elif not args.has_key('optional'):
+                elif args.has_key('optional'):
+                    # No file on disk but -optional was specified, so
+                    # don't attempt the open.
+                    try_open = 0
+                if try_open:
                     mmdb_file = open(dbfile, 'r')
                     mmdb_data = Serializer.load(mmdb_file)
                     mmdb_file.close()

Reply via email to