Re: [Mailman-Developers] html question
Hi Danil,
On Sun, 7 Jun 2015 15:22:48 +0300 Danil Smirnov <danil@smirnov.la> wrote:
I've sent simple html-formatted message with image inside the body to my Mailman 3 test list.
On "Held messages" page there is 'View' button and it was disappointing that this feature just show a source code of message (35 thousand lines because of image attached).
Postorius just queries the core via REST API the for the message and dumps the message code in the "View". Probably we need to identify if the message contains a text/html part and then render that appropriately.
When I approve the message it went to the archive but with no proper html rendering also. The html was simple formatting and it become attachment.html file which even cannot be opened in place, just downloaded.
Are there any plans to show html messages nicely in 'View' feature and archives?
Care to open an issue for it on Gitlab? https://gitlab.com/mailman/postorius/issues
-- thanks, Abhilash Raj
On Jun 08, 2015, at 02:13 PM, Abhilash Raj wrote:
Postorius just queries the core via REST API the for the message and dumps the message code in the "View". Probably we need to identify if the message contains a text/html part and then render that appropriately.
Although we do have to be careful not to provide a vector for malware attacking list admins.
Cheers, -Barry
On 2015-06-08 7:52 AM, Barry Warsaw wrote:
On Jun 08, 2015, at 02:13 PM, Abhilash Raj wrote:
Postorius just queries the core via REST API the for the message and dumps the message code in the "View". Probably we need to identify if the message contains a text/html part and then render that appropriately.
Although we do have to be careful not to provide a vector for malware attacking list admins.
Indeed. We should use a known parser to defang anything we re-display and absolutely positively not write a new one. There's probably something suitable in django already.
Terri
2015-06-08 11:43 GMT+03:00 Abhilash Raj <raj.abhilash1@gmail.com>:
Care to open an issue for it on Gitlab? https://gitlab.com/mailman/postorius/issues
participants (4)
-
Abhilash Raj
-
Barry Warsaw
-
Danil Smirnov
-
Terri Oda