Re: Training frustration

Anne Wilson <[email protected]>
Newsgroups gmane.mail.bogofilter.general
Message-ID <[email protected]>
On Saturday 09 February 2008 19:31, David Relson wrote:
> On Sat, 9 Feb 2008 13:05:07 +0000
>
> Anne Wilson wrote:
> > I'm tearing my hair, unable to get bogotrain to work satisfactorily.
> > I get lots of messages like
> >
> > /usr/share/bogofilter/contrib/contrib/trainbogo.sh: line
> > 237:
> > /home/anne/Maildir/.INBOX.bogotrain_spam/cur//1201357651.P12941Q535.borg2
> >.lydgate.net:2,S: No such file or directory
> >
> > I presume it's the double '/' before the message number.  How can I
> > fix this?
> >
> > Anne
>
> Hi Anne,
>
> A couple of environment questions:  What version of bogofilter?  What
> distro? What shell?
>
bogofilter-1.1.6-1.el5.rf - I had the same problem on the old server, running 
Mandriva 2007.1, which I think had a later bogofilter.  The new server runs 
CentOS 5.1, and I run commands under Konsole.

> Exactly how (what command) are you using to run trainbogo.sh?  

/usr/share/bogofilter/contrib/contrib/trainbogo.sh -H /home/anne/Maildir/.INBOX.bogotrain_ham/cur/ -S /home/anne/Maildir/.INBOX.bogotrain_spam/cur

The ham folder processed correctly.  The spam folder had 17 messages, but 
showed 90+ errors, IIRC.

> You can 
> make trainbogo.sh print each command by adding " -v" at the end of the
> #! line.
>
> The double slash in the path doesn't matter with bash (see below).
> What shell (and version) is your /bin/sh ?
>
It is bash, version 3.1.17(1)-release (i686-redhat-linux-gnu)

> relson@osage ~/Mail $ ls -l /home/relson/Mail/inbox/55702
> -rw------- 1 ... 4231 Sep 10 08:51 /home/relson/Mail/inbox/55702
>
> relson@osage ~/Mail $ ls -l /home/relson/Mail/inbox//55702
> -rw------- 1 ... 4231 Sep 10 08:51 /home/relson/Mail/inbox//55702
>
> Lastly, what is line 237 in _your_ copy of trainbogo.sh.  My copy's 237
> is:
> 	bogotest=$(${bf} -v < "${fname}")
>
bogotest=$(${bf} -v < "${fname}")

but that may be a red-herring, as it complains also of lines 212 and 234.

212 bogotest=$(${bf} -v < "${fname}")
234 ${bf} ${bfopt} < "${fname}"

> Off-hand it looks correct which is what makes me question which shell
> you're using.
>
There are now 18 messages in the spam folder and one in the ham folder.  The 
end of the output is

f/usr/share/bogofilter/contrib/contrib/trainbogo.sh: line 
212: /home/anne/Maildir/.INBOX.bogotrain_ham/cur//1201357604.P12941Q452.borg2.lydgate.net:2,S: 
No such file or directory
./usr/share/bogofilter/contrib/contrib/trainbogo.sh: line 
212: /home/anne/Maildir/.INBOX.bogotrain_spam/cur//1201357651.P12941Q534.borg2.lydgate.net:2,S: 
No such file or directory
/usr/share/bogofilter/contrib/contrib/trainbogo.sh: line 
234: /home/anne/Maildir/.INBOX.bogotrain_spam/cur//1201357651.P12941Q534.borg2.lydgate.net:2,S: 
No such file or directory
/usr/share/bogofilter/contrib/contrib/trainbogo.sh: line 
237: /home/anne/Maildir/.INBOX.bogotrain_spam/cur//1201357651.P12941Q534.borg2.lydgate.net:2,S: 
No such file or directory
f/usr/share/bogofilter/contrib/contrib/trainbogo.sh: line 
212: /home/anne/Maildir/.INBOX.bogotrain_spam/cur//1201357651.P12941Q535.borg2.lydgate.net:2,S: 
No such file or directory
/usr/share/bogofilter/contrib/contrib/trainbogo.sh: line 
234: /home/anne/Maildir/.INBOX.bogotrain_spam/cur//1201357651.P12941Q535.borg2.lydgate.net:2,S: 
No such file or directory
/usr/share/bogofilter/contrib/contrib/trainbogo.sh: line 
237: /home/anne/Maildir/.INBOX.bogotrain_spam/cur//1201357651.P12941Q535.borg2.lydgate.net:2,S: 
No such file or directory


Total   messages: 164

Total        ham: 1
Misdetected  ham: 0
    retrain fail: 0

Total       spam: 18
Misdetected spam: 92
    retrain fail: 92

Anne
_______________________________________________
Bogofilter mailing list
[email protected]
http://www.bogofilter.org/mailman/listinfo/bogofilter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.