[patch #7548] Don't totally mangle stupid double-HTML messages

2011-06-02 12:44:48

                 Summary: Don't totally mangle stupid double-HTML messages
                 Project: MHonArc
            Submitted by: cloyce
            Submitted on: Thu 02 Jun 2011 05:53:18 PM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



Some Microsoft products (Word for sure) can produce a message with an HTML
body that has a structure like

...real message goes here...

...more stuff...
...message signature goes here...

MHonArc currently renders the HTML part of this message as just the signature.
 The code responsible is the code that trims the head element -- it removes
everything from the initial opening head tag to the final closing head tag,
including the main body of the message.

The fix is pretty simple -- it just involves making the regexp less greedy and
also making it loop as for all the other elements.

Thanks for considering this change.


File Attachments:

Date: Thu 02 Jun 2011 05:53:18 PM GMT  Name: mhonarc-2.6.18-badhtmlfix.patch 
Size: 831B   By: cloyce



Reply to this item at:


  Message sent via/by Savannah

To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the

<Prev in Thread] Current Thread [Next in Thread>