ports/110728: mail/py-spambayes should load config file from a
standard location
Torfinn Ingolfsen
torfinn.ingolfsen at broadpark.no
Fri Aug 24 02:47:01 PDT 2007
On Fri, 23 Mar 2007 19:40:18 +0000 (GMT)
Edwin Groothuis <edwin at 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 at 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 at kg-work#
root at 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 at kg-work.kg4.no:/usr/obj/usr/src/sys/SS51G i386
This works even after the python24 -> python25 upgrade.
HTH
--
Regards,
Torfinn Ingolfsen
More information about the freebsd-python
mailing list