HTML support in Mailing-list based Forum

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

HTML support in Mailing-list based Forum

MichaelAtOz
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.
Reply | Threaded
Open this post in threaded view
|

Re: HTML support in Mailing-list based Forum

MichaelAtOz
I do note that the right format is (should be*) available.
page_node.message.as_raw returns the full email, headers & MIME parts.
e.g.
            ...
            List-Archive: <http://www.freelists.org/archives/michaelatoz>
            X-list: michaelatoz
            
            ------=_Part_1162760_1466795640.1611803166276
            Content-Type: text/plain; charset=us-ascii
            Content-Transfer-Encoding: 7bit
            
            *bold*
            /italics/
            link <http://wikipedia.com>  
            image: <http://michaelatoz-test.1112830.n5.nabble.com/file/t1/IMAG1793.jpg> 
            ...
            --
            Sent from: http://michaelatoz-test.1112830.n5.nabble.com/
            ------=_Part_1162760_1466795640.1611803166276
            Content-Type: text/html; charset=us-ascii
            Content-Transfer-Encoding: 7bit
            
            <b>bold</b><br/><i>italics</i><br/><a href="http://wikipedia.com" target="_top" rel="nofollow" link="external">link</a><br/>image:<img src="http://michaelatoz-test.1112830.n5.nabble.com/file/t1/IMAG1793.jpg" border="0"/><br/>
            
            <br/><hr align="left" width="300" />
            Sent from the <a href="http://michaelatoz-test.1112830.n5.nabble.com/">MichaelAtOz_test mailing list archive</a> at Nabble.com.<br/>
            ------=_Part_1162760_1466795640.1611803166276--

* 'should be' email received from a email-client (as opposed to Forum generated email), may
only have text/plain, so if text/html is not found it would be correct to return *bold* type format, ie from text/plain.
Reply | Threaded
Open this post in threaded view
|

Re: HTML support in Mailing-list based Forum

MichaelAtOz
MichaelAtOz wrote
I do note that the right format is (should be*) available.
page_node.message.as_raw returns the full email, headers & MIME parts.
e.g.
            ...
            List-Archive: &lt;http://www.freelists.org/archives/michaelatoz&gt;
            X-list: michaelatoz
            
            ------=_Part_1162760_1466795640.1611803166276
            Content-Type: text/plain; charset=us-ascii
            Content-Transfer-Encoding: 7bit
            
            *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/
            ------=_Part_1162760_1466795640.1611803166276
            Content-Type: text/html; charset=us-ascii
            Content-Transfer-Encoding: 7bit
            
            <b>bold</b><br/><i>italics</i><br/><a href="http://wikipedia.com" target="_top" rel="nofollow" link="external">link</a><br/>image:<img src="http://michaelatoz-test.1112830.n5.nabble.com/file/t1/IMAG1793.jpg" border="0"/><br/>
            
            <br/><hr align="left" width="300" />
            Sent from the <a href="http://michaelatoz-test.1112830.n5.nabble.com/">MichaelAtOz_test mailing list archive</a> at Nabble.com.<br/>
            ------=_Part_1162760_1466795640.1611803166276--

* 'should be' email received from a email-client (as opposed to Forum generated email), may
only have text/plain, so if text/html is not found it would be correct to return *bold* type format, ie from text/plain.
Any tips on how I could extract the
'<b>bold</b><br/><i>....'
 bit from the text/html part of page_node.message.as_raw??
Reply | Threaded
Open this post in threaded view
|

Re: HTML support in Mailing-list based Forum

Israel <Nabble>
Administrator
Hello Michael,
Nabble has low priority for updates for while, probably it will be replaced by Blasma.