Training frustration

mouss mouss at netoyen.net
Sat Feb 9 21:12:01 CET 2008


Anne Wilson wrote:
>
>> 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
>   

if you don't see the '//' you can remove the trailing slash in cur/. but 
this really doesn't matter.
> 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)
>   

the shell doesn't matter. under unix, / and // are equivalent (same as 
///////).
>   
>> relson at osage ~/Mail $ ls -l /home/relson/Mail/inbox/55702
>> -rw------- 1 ... 4231 Sep 10 08:51 /home/relson/Mail/inbox/55702
>>
>> relson at 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}"
>
>   

so the filename is quoted which should exclude problems with the ',' if 
this is interpreted by the shell.

>> 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
>   


can you check to see that the file is still there? anything moving it in 
the middle of training?



More information about the Bogofilter mailing list