The following reply was made to PR ports/110728; it has been noted by GNATS.

From: Torfinn Ingolfsen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [email protected], Edwin Groothuis <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]> 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:
 [EMAIL PROTECTED] 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)
 [EMAIL PROTECTED] 
 [EMAIL PROTECTED] uname -a
 FreeBSD kg-work.kg4.no 6.2-STABLE FreeBSD 6.2-STABLE #4: Tue Jun 19 17:47:13 
CEST 2007     [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SS51G  i386
 
 This works even after the python24 -> python25 upgrade.
 
 HTH
 -- 
 Regards,
 Torfinn Ingolfsen
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to