On Mon, 27 Aug 2007, +14:47:06 EEST (UTC +0300),
Milan Zamazal <[EMAIL PROTECTED]> pressed some keys:

> >>>>> "JT" == Juhapekka Tolvanen <[EMAIL PROTECTED]> writes:
> 
>     JT> Package: crm114 
>     JT> Version: 20070810-1 
> 
>     JT> If I try to teach my spam and ham to crm-114, I get these errors
>     JT> every time:
> 
>     JT> % crm114-learnspam.sh
>     JT> 
> **************************************************************************
>     JT> 1 / 1
> 
>     JT>  ERROR: maillib.crm broke.  Here's the error\: ERROR:
>     JT> /usr/bin/crm: *ERROR* For some reason, I was unable to read-open
>     JT> the file named :*:cf_filename: Sorry, but this program is very
>     JT> sick and probably should be killed off.  This happened at line
>     JT> 717 of file /home/juhtolv/.crm114/mailreaver.crm (runtime system
>     JT> location: crm_expr_file_io.c(151) function crm_expr_input)
> 
> Juhapekka,
> 
> looking into the referred crm114 sources it looks like your
> mailfilter.cf can't be found.  This must be something specific to your
> site, the following works fine on my machine:
> 
>   % echo 'X-CRM114-CacheID: sfid-20070827_125409_835767_201CA9EB ' | crm -u 
> ~/crm ~/crm/mailreaver.crm --spam
>   X-CRM114-CacheID: sfid-20070827_125409_835767_201CA9EB 
>   X-CRM114-Action: LEARNED AND CACHED SPAM

I changed my scripts lines to these:

/usr/bin/crm -u ${HOME}/.crm114 ${HOME}/.crm114/mailreaver.crm \
--config=${HOME}/.crm114/mailfilter.cf -u ${HOME}/.crm114 \
--fileprefix=${HOME}/.crm114/ --good < "$f" | egrep '^X-CRM114-.*$'

/usr/bin/crm -u ${HOME}/.crm114 ${HOME}/.crm114/mailreaver.crm \
--config=${HOME}/.crm114/mailfilter.cf -u ${HOME}/.crm114 \
--fileprefix=${HOME}/.crm114/ --spam < "$f" | egrep '^X-CRM114-.*$'

Now they both work just fine.

It is very important to have this:

--fileprefix=${HOME}/.crm114/

Instead of this:

--fileprefix=${HOME}/.crm114

In that second case it tries to find file ${HOME}/.crm114./mailtrainer.crm
or something like that. In first case it _probably_ tries to find file
${HOME}/.crm114/./mailtrainer.crm . That path has that weird part "/./",
but it works.


> Also the reported line number 717 looks weird -- I can't locate a
> corresponding place of the error in mailreaver.crm, even with
> maillib.crm inserted.  Could you please double check you actually use
> the unchanged mailreaver.crm and maillib.crm files (e.g. by using
> strace, ls -lu or so)?

Those files are unchanged and I have symlinks that point from ~/.crm114
to them:


yhteensä 24676
drwx------   3 juhtolv juhtolv     4096 2007-08-28 01:36 .
drwxr-xr-x 199 juhtolv juhtolv    20480 2007-08-28 01:41 ..
-rw-------   1 juhtolv juhtolv        0 2007-07-14 15:10 allmail.txt
-rw-------   1 juhtolv juhtolv        0 2005-09-02 18:25 blacklist.mfp
lrwxrwxrwx   1 juhtolv juhtolv       34 2007-08-01 13:33 classifymail.crm -> 
/usr/share/crm114/classifymail.crm
-rw-r--r--   1 juhtolv juhtolv    18086 2007-08-24 18:35 mailfilter.cf
lrwxrwxrwx   1 juhtolv juhtolv       32 2007-08-01 13:33 mailfilter.crm -> 
/usr/share/crm114/mailfilter.crm
lrwxrwxrwx   1 juhtolv juhtolv       32 2007-08-28 01:36 mailreaver.crm -> 
/usr/share/crm114/mailreaver.crm
lrwxrwxrwx   1 juhtolv juhtolv       33 2007-08-28 01:35 mailtrainer.crm -> 
/usr/share/crm114/mailtrainer.crm
-rw-------   1 juhtolv juhtolv 12582924 2007-08-28 01:40 nonspam.css
-rw-------   1 juhtolv juhtolv        0 2007-07-14 15:09 nonspamtext.txt
-rw-------   1 juhtolv juhtolv        0 2005-09-02 18:25 priolist.mfp
drwx------   8 juhtolv juhtolv     4096 2007-08-24 19:15 reaver_cache
-rw-------   1 juhtolv juhtolv        0 2007-07-14 15:10 rejected_by_css.txt
-rw-------   1 juhtolv juhtolv        0 2006-08-04 03:22 rewrites.mfp
lrwxrwxrwx   1 juhtolv juhtolv       33 2007-08-01 13:33 rewriteutil.crm -> 
/usr/share/crm114/rewriteutil.crm
-rwxr--r--   1 juhtolv juhtolv     6924 2007-03-20 20:43 shuffle.crm
-rw-------   1 juhtolv juhtolv 12582924 2007-08-28 01:40 spam.css
-rw-------   1 juhtolv juhtolv        0 2007-07-14 15:09 spamtext.txt
-rw-------   1 juhtolv juhtolv       15 2005-09-02 18:25 whitelist.mfp


-- 
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
"Sou sa, ima mo ore wa mitsukerarenai sonzai no imi ga, dakara motto motto
motto motto motto kono karada ni imi wo kizamitsukeru: 'Tada waratte,
fuminijireba ii.'"                                               Dir en grey

Reply via email to