HTML support in Mailing-list based Forum

Posted by MichaelAtOz on
URL: https://support.nabble.com/HTML-support-in-Mailing-list-based-Forum-tp7608192.html

As previously reported, it is disappointing that the change to Mailing-list Forum posts, of a couple of years ago, means inline images, links and bold/italic formatting etc, does not get translated to the Mailing-list.

I decided to look into it a bit more.
Prior, both  text/plain and text/html multipart MIME email was sent.

Currently when you preview a post using formats (NOT HTML) it looks nice, e.g.
           

When you post, the formatting does not go to the Mailing-list. You get naked url's, nothing inline.

In the macro send_mail_to_list  there is this test
<n.if.either condition1="[n.plain_text_only/]" condition2="[n.new_node.message.is_text_format/]"> 
Which if true does not send a HTML part.

So I did an override, so it always sends the HTML part as well.

Then the nice formatting makes it to the Mailing-list, e.g.
           

So good so far.

But I have ran into a problem with 'Quote'-ing, like in 'reply', it loses the format,
changing it to plain format, e.g.

            <quote author="MichaelAtOz">
            *bold*
            /italics/
            link &lt;http://wikipedia.com&gt;  
            image: &lt;http://michaelatoz-test.1112830.n5.nabble.com/file/t1/IMAG1793.jpg&gt; 
            ...
            --
            Sent from: http://michaelatoz-test.1112830.n5.nabble.com/
            </quote>

The quoted text that is inserted in the edit box is from macro message_control:
      <n.editor_toolbar
            textarea_id="[n.message_field.name/]"
            original_text="[n.if.page_node.is_post][then.page_node.message_quoted/][/n.if.page_node.is_post]"
     /> 

Macro message_quoted does <n.trim.message.as_quoted_text/> 
All three of those calls are Binary, so I don't have access.

I have tried to find different page_node.<alternatives>, but none I found return the post in the right format.
a. Is there a way to get quoted text with tags like
<b>bold</b>
 instead of
*bold*
?

or
b. Would it be possible to get a change to produce it, e.g. page_node.message_formatted?

The Mailing-list loses a lot of functionality without inline images and tidy links.