Re: demime.pl related problem

Richard Ball <[email protected]> Wed, 22 Sep 2010 07:52:29 -0400
Newsgroups gmane.mail.smartlist.user
Message-ID <[email protected]>
  On 21-9-2010 14:28, Zhiliang wrote:
> On Tue, 21 Sep 2010, Richard Ball wrote:
>
>> Date: Tue, 21 Sep 2010 13:04:21 -0400
>> From: Richard Ball<[email protected]>
>> To: [email protected]
>> Subject: Re: demime.pl related problem
>>
>>   On 21-9-2010 12:44, Zhiliang wrote:
>>> I have "demime.pl" working fine on my list for a while, except once a
>>> while some spam mail cause this error to appear in a mail to the
>>> listmaster:
>>>
>>>     450 Lynx formatting failed: open3: exec of lynx --stdin
>>>     --dump --force_html --hiddenlinks=ignore --localhost
>>>     --image_links --nolist --noredir --noreferer --realm
>>>     failed at /var/list/bin/demime.pl line 1519
>>>
>>> I could't figure out why and I was not really bothered as long as normal
>>> mailing works fine and the spam is filtered out.  Now something weird
>>> happened -- upon a normal post by a legitimate user, the Smartlist
>>> completely replaced the mail body with this error line to have posted to
>>> the list.
>>>
>>> Could anyone help for hints what could be wrong?
>>>
>>> FYI - the demime.pl recipe is the very first before all others in
>>> rc.local:
>>>
>>>     :0 fw
>>>     | /var/list/bin/demime.pl -
>>>
>> That looks like a lynx error so I'd start by running the original
>> message through lynx and see if you can work out why it is having a
>> formatting problem.
>>
>> You could also try replacing the lynx call with one to elinks (or w3m)
>> and see if that works better for the problem messages.
>>
>> Mind you, I don't use smartlist nor demime nor lynx etc. any more so
>> your mileage may vary :-)
>>
>> Rich
> You mean the (old) text-only linux browser "lynx"?  I don't have it on the
> system (probably that's why!). I only looked for "open3" from its
> depenecies :-|
>
> Wonder why "demime.pl" needs to make http calls... I may need to look for
> a replacement for "demime.pl".
open3 is a perl function and not related to the html -> text conversion. 
IIRC the demime script needs lynx (or something similar) to do the 
actual conversion of the html code to plain text if there is not a plain 
text section already included in the message.

Rich
> Thank you for suggestions on elinks etc. That's useful!
>
> Zhiliang
> _______________________________________________
> Smartlist mailing list
> [email protected]
> http://MailMan.RWTH-Aachen.DE/mailman/listinfo/smartlist
>