On Thu, Jun 19, 2003 at 09:13:00PM +0300, Justin Mason wrote: > > Create initial DBs manually with SA's tools and MIMEDefang can't > > access them. Let MIMEDefang create them and SA's tools will > > create DBs of their own with DB_File. > > Yeah, there's a known bug open in the SpamAssassin bugzilla. The big > problem is that both projects are using AnyDBM_File, but that module is > pretty badly-designed as an OO perl module; it has side-effects on all > other code in the perl interpreter. :(
Aha, interesting. I think I solved the problem by enabling the # BEGIN { @AnyDBM_File::ISA = qw(DB_File GDBM_File NDBM_File SDBM_File); } in the beginning of DBBasedAddrList.pm. I've patched mimedefang.pl to make use of AWL (to the interested: check MIMEDefang mailing list, the patch is just a few lines lines and will most likely be in the next release). Perhaps that had the effect of somehow overriding the AnyDBM_File set earlier in BayesStore.pm as the AWL thing gets called in mimedefang.pl after Bayes. Flame on about my pathetic perl knowledge if that conclusion is false :-) I'm just wondering if I read AnyDBM_File's manpage wrong as I think it said it defaults to DB_File, so somekind of override without setting anything via this ISA thing shouldn't make it default to NDBM... or maybe it should. I'll shut up, my problem is solved :-) Regards, -- (Mr.) Hannu Liljemark | Appelsiini Finland Oy | http://appelsiini.com ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk