[spambayes-dev] [Spambayes] Unwanted stock solicitations

Luigi Pugnetti pl at symbolic.it
Mon Nov 6 15:32:24 CET 2006

On Mon, 2006-11-06 at 08:22 -0600, skip at pobox.com wrote:
>     Luigi> as long as python returns a short path you have no problem
>     Luigi> otherwise you could get a path with a space (like c:\Document and
>     Luigi> Settings\...).  It's could be required also on Linux (but as
>     Luigi> already said it's unlikely you get a path that requires quote
>     Luigi> there).  Putting quotes around pnmfile does no harm and may
>     Luigi> protect you from unusual setup
> Fixed.

On windows you cannot use ' to quote a path you have to use ".

you must change
ocr = os.popen("%s -s %s -c %s -f '%s' 2>%s"


ocr = os.popen('%s -s %s -c %s -f "%s" 2>%s'

sorry no patch

Luigi Pugnetti

Symbolic S.p.A.
V.le Mentana, 29
I-43100 Parma

Tel: +39 0521 708811
Fax: +39 0521 776190

More information about the spambayes-dev mailing list