Le 1 aoû¹ 2006 02:18, James Edward Gray II a ñÄrit :

> On Jul 31, 2006, at 6:30 PM, F. Senault wrote:

>> Now, I could disable the filter, but the posts might not go far on
>> usenet anyway, I'm afraid.
> 
> Excellent catch Fred!
> 
> I'm open to any suggestions for how we could improve this...  Perhaps  
> we need a Ruby Quiz to textify HTML messages.  ;)

Heh.  I had to do it for a small project of mine [1] and I used the
brute force unixy approach - pipe everything into a program much better
at it than I :

/usr/local/bin/links -dump -force-html
                     -html-assume-codepage iso8859-15
                     -codepage iso8859-15 -width 76

Now, I suspect those messages are multipart (/alternative) messages, so
we nearly always gave a text part.  It should be possible with the
rubymail project, or with a custom MIME parser.

I've already done it in perl, I'll take a look at the portability of the
code.  I expect it top be quite low, though...  :}

Fred
[1] http://news.lacave.net/rss/ - main page in French, but most parts 
                                  are in English... or in ruby...  :)
-- 
Why was I one of the chosen ones? 
Until the fight I could not see 
The magic and the strength of my power 
It was beyond my wildest dreams          (Within Temptation, Dark Wings)