[Spambayes] Unwanted stock solicitations

skip at pobox.com skip at pobox.com
Wed Oct 18 14:15:25 CEST 2006


    Seth> Other issues: PIL is not there, 

Yes, that's a separate installer.  I believe this is mentioned in the
release notes.  Get it here:

    http://www.pythonware.com/products/pil/

    Seth> and no x-image_size or x-crack_images in [tokenizer] section of
    Seth> ini file.

Can you try adding these lines to the [tokenizer] section of the ini file?

    x-lookup_ip: True
    lookup_ip_cache: dnscache.pck
    x-image_size: True
    x-crack_images: True
    max_image_size: 100000
    crack_image_cache: image_cache.pck

You'll also have to install PyDNS:

    http://pydns.sourceforge.net/

for the x-lookup_ip stuff to work.


    Seth> I installed Python2.4.4c1, installed PIL 1.1.5 for python 2.4,
    Seth> added the four configuration lines you mentioned in another thread
    Seth> to the [tokenizer] section of the ini file and added the spambayes
    Seth> and python directories to the system path.  Unfortunately, it
    Seth> still doesn't generate tokens from gif's.  Perhaps there is an
    Seth> issue with spambayes using python24.dll while ocrad uses the full
    Seth> python2.4?

Ocrad is a separate standalone program which isn't Python-specific.
Unfortunately, it only works with NetPBM files as input (that's what PIL
does for us), so it's probably a little challenging to run on a Windows
machine.  I uploaded a file here:

    http://orca.mojam.com/~skip/spam.pnm

if you can't easily create one yourself.

Running it like this

    ocrad -2 < spam.pnm

on my Mac gives me this gibberish on standard output:

    ___AllE_llO_ ALL DA_ IRADER_ A_D |__E_IOR____

    |__E_OIR ALERll
    II LOO__ Ll_E A_OIWER R__ FOR _w_wl
    WAl_W _w_w Ll_E A WAW_ o_ |___d__ A_O___ l. _oos

    _omO_n_ __m_ _O_IWWE_IER_ WEDl_AL. |__
    __o_k __mbol _w_w
    Wond__ _lo__ o 11
    _ol_m_ _.TSl.TO_
    _h_nO_ _P o o__ (_T TB_/_)
    w__k__ __o ___.ooo.ooo 00 (AOO_o_)

    _WWM p_ R___A___ BR_A_IWC w_w_ |
    _o__hw______ M_dl_ol _ol__lo__ |__ _PIWW_W__T_ _WWM_
    |_ Ol_o__d _o o__o____ _ho_ |_ ho_ ______d |__o _h_ _o_mol __oO__
    o_ __Oo_lo_lo__ __Oo_dl_O Po_|_|_ Rlm _o_lo__ dl___lb__lo_ _o_ |__
    O_oO_|__o__ _obO_o_d_TM_ O_od___ ||__

    D__lnO _h_ |___ _ mon_h_. _o__hw______ M_dl_ol ho_ h_ld dl_____lo__
    Oo_h___d do_o o_d __Olo__d _h_ O_o_O___|__ ||____|_o o_ |__ _obO_o_d_TMl
    dloO_o__|_ _____m _o b_ _old _h_o_Oh |_____o_lo_oll_ bo__d dl___lb__lo_
    _omOo_|__ |__o Po_|_|_ Rlm o__o_ Th_ |_|_lol |_______ ho_ b___ ___ _h_ _ol_
    o_ _h_ O_od___ _o_ Oo____m___ _mOlo___ ____|_O O_oO_om_ ___h o_ Ooll__
    _o____ lo_ol o_d __o__ |___| wo____ o_d ol_o |__|_d__ hlOh__ |___| wo_Wo____
    R_o_o__ _|__d _o_ _h_ |_______ o_ _h_ _obO_o_d_TM_ O_od___ ho__ b___ _h_
    __ho___d _o__ o_ ___ o_ _h_ O_od___ o_d lmm_dlo__ o_ _|__ _o__|_mo_lo_
    o_ w_ll o_ |____o__d __lloblll__ o_ _h_ ____|__
    (_WE__ FA_ORllE _EW_ _llE FOR WORE)

    ADD lwl_ _EW lo _O_R RADAR A_D WAl_W IRADE o_ WO_DA_|
    DO_.| E_E_ BLl__|
    _w_w DOE__.| _LEEpl

    RPmo_al _
    Dl__lalmP_ _

Skip


More information about the SpamBayes mailing list