<[EMAIL PROTECTED]> writes: > I am only having this problem with one user out of a group of ~20 users. > > The entry in tmda.debug is as follows: > > Uncaught Python 2.2.2 Exception (Mon Nov 17 14:13:30 2003): > ----------------------------------------------------------- > Traceback (most recent call last): > File "/usr/local/share/tmda/bin/tmda-filter", line 53, in ? > execfile(os.path.join(execdir, 'tmda-rfilter')) > File "/usr/local/share/tmda/bin/tmda-rfilter", line 891, in ? > main() > File "/usr/local/share/tmda/bin/tmda-rfilter", line 830, in main > orig_msgin_size) > File "/usr/local/share/tmda/TMDA/FilterParser.py", line 920, in firstmatch > actions, source) > File "/usr/local/share/tmda/TMDA/FilterParser.py", line 746, in __search_dbm > dbm = anydbm.open(pathname, 'r') > File "/usr/local/lib/python2.2/anydbm.py", line 80, in open > raise error, "need 'c' or 'n' flag to open new db" > error: need 'c' or 'n' flag to open new db > Traceback (most recent call last): > File "/usr/local/share/tmda/bin/tmda-filter", line 69, in ? > > ************************************************** > > I really have no idea where to go with this. Any help is appreciated.
Could we see the line from the incoming filter file that's causing this? The error means that the database doesn't exist, but if it didn't exist, it should have been rebuilt. If the rebuild fails, the code searches the text file instead. Since this is searching the dbm, it appears to have rebuilt successfully. Sometimes this error happens because the user uses the wrong file name in his/her filter file. If all of your users are using the same filter file, then we'll have to look elsewhere; if they have their own filters, it's probably a naming inconsistency. The filename in the filter rule should be the name of the *text* file, not the name of the database file. Tim _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
