3 ms·
Not only does it generate a non-standard format, the HTML has significant problems: - It would be relatively hard to reconstruct the email with a script, e.g.
by dbaupp 14y ago
Not only does it generate a non-standard format, the HTML has significant problems:
- It would be relatively hard to reconstruct the email with a script, e.g. the headers are formatted as a plain text with <strong> for the labels, the data left unmarked in anyway and <br> for line breaks (no ids or classes at all). From http://sparklingnetwork.nl/nopriv/2012/12/26.html http://sparklingnetwork.nl/nopriv/2012/12/26.html:
<strong>From:</strong> "Remy van Elst <relstnl@gmail.com>"
<br />
<strong>To: </strong>""backup@sparklingnetwork.nl" <backup@sparklingnetwork.nl>"
<br />
- It's invalid markup[1], with the email's HTML contents inserted wholesale, including the <head> and <body> tags.
- Not sure if this is a problem with NoPriv.py, or if it has occured earlier in the chain, but something has screwed up character encodings, e.g. in the URLs here: http://sparklingnetwork.nl/nopriv/2012/12/1.html http://sparklingnetwork.nl/nopriv/2012/12/1.html (The page is served with no encoding specified nor is there a <meta http-equiv> so it defaults to UTF-8, and these characters are invalid. However, even in Latin-1 or anything else, they are definitely not '=' which appears to be what they should be.)
(The markup is also horrible, with strange indentations and a lot of extraneous whitespace and one-cell tables.)
[1]: http://validator.w3.org/check?uri=http%3A%2F%2Fsparklingnetwork.nl%2Fnopriv%2F2012%2F12%2F26.html&doctype=HTML5 http://validator.w3.org/check?uri=http%3A%2F%2Fsparklingnetw...
- thorum 14y agoSimple enough issues to fix, of course, since this project is open source and only 431 lines of Python. https://github.com/RaymiiOrg/NoPriv/blob/master/nopriv.py https://github.com/RaymiiOrg/NoPriv/blob/master/nopriv.py