I have had some problems with file permissions or file absence that causes TMDA to
generate a message similar to:
Uncaught Python 2.1.1 Exception (Thu Jan 1 22:11:02 2004):
-----------------------------------------------------------
Traceback (most recent call last):
File "/usr/bin/tmda-filter", line 53, in ?
execfile(os.path.join(execdir, 'tmda-rfilter'))
File "/usr/bin/tmda-rfilter", line 891, in ?
main()
File "/usr/bin/tmda-rfilter", line 830, in main
orig_msgin_size)
File "/usr/lib/python2.1/site-packages/TMDA/FilterParser.py", line 913, in firstmatch
Util.build_dbm, self.__search_dbm, optional)
File "/usr/lib/python2.1/site-packages/TMDA/FilterParser.py", line 770, in
__autobuild_db
txt_mtime = os.path.getmtime(basename)
File "/usr/src/build/221901-i386/install/usr/lib/python2.1/posixpath.py", line 144,
in getmtime
st = os.stat(filename)
OSError: [Errno 2] No such file or directory: '/home/tina/.tmda/filters/blacklist'
In this case the error is corrected by adding the blacklist file; however, the message
that generated this error is lost... whether it was "good" or "bad."
The real problem is a lack of attention to detail... I failed to create a file, or I
created it as root and didn't have proper permissions. Another exists due to the
mailman config.db file being regenerated periodically with permissions that don't
allow all users to read the file.
Is there a way to make this more friendly for admin error? Is there a way to prevent
the loss of the message when a similar Python error occurs?
Thanks,
Steve
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users