Date: Fri, 24 Aug 2007 09:50:06 GMT From: Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> To: freebsd-python@FreeBSD.org Subject: Re: ports/110728: mail/py-spambayes should load config file from a standard location Message-ID: <200708240950.l7O9o6so065584@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/110728; it has been noted by GNATS. From: Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> To: bug-followup@freebsd.org Cc: freebsd-python@FreeBSD.org, Edwin Groothuis <edwin@FreeBSD.org> Subject: Re: ports/110728: mail/py-spambayes should load config file from a standard location Date: Fri, 24 Aug 2007 10:46:07 +0200 On Fri, 23 Mar 2007 19:40:18 +0000 (GMT) Edwin Groothuis <edwin@FreeBSD.org> wrote: > Synopsis: mail/py-spambayes should load config file from a standard > location > > State-Changed-From-To: open->feedback > State-Changed-By: edwin > State-Changed-When: Fri Mar 23 19:40:17 UTC 2007 > State-Changed-Why: > Awaiting maintainers feedback > > http://www.freebsd.org/cgi/query-pr.cgi?pr=110728 FWIW, it seems like this patch makes spambayes load its config file from /var/db/spambayes, which fixes the problem: root@kg-work# cat /usr/ports/mail/py-spambayes/files/patch-Options.py --- spambayes/Options.py_org Sat Aug 18 22:27:12 2007 +++ spambayes/Options.py Sat Aug 18 22:30:02 2007 @@ -1187,7 +1187,7 @@ optionsPathname = os.path.abspath(filenames[-1]) else: alts = [] - for path in ['bayescustomize.ini', '~/.spambayesrc']: + for path in ['/var/db/spambayes/bayescustomize.ini', '~/.spambayesrc']: epath = os.path.expanduser(path) if os.path.exists(epath): alts.append(epath) root@kg-work# root@kg-work# uname -a FreeBSD kg-work.kg4.no 6.2-STABLE FreeBSD 6.2-STABLE #4: Tue Jun 19 17:47:13 CEST 2007 root@kg-work.kg4.no:/usr/obj/usr/src/sys/SS51G i386 This works even after the python24 -> python25 upgrade. HTH -- Regards, Torfinn Ingolfsen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708240950.l7O9o6so065584>