Re: [Mailman-Developers] html question

2015-06-09 Thread Terri Oda

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

___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Developers] html question

2015-06-09 Thread Danil Smirnov
2015-06-08 11:43 GMT+03:00 Abhilash Raj raj.abhila...@gmail.com:
 Care to open an issue for it on Gitlab?
 https://gitlab.com/mailman/postorius/issues

Done:
https://gitlab.com/mailman/postorius/issues/23
___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Developers] html question

2015-06-08 Thread Abhilash Raj
Hi Danil,

On Sun, 7 Jun 2015 15:22:48 +0300
Danil Smirnov da...@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
___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Developers] html question

2015-06-08 Thread Barry Warsaw
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

___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9