htmlpurifier - Webmail: HTML headers -


html e-mails complex beast. deciding send (as sender) , display (as recipient) tricky , potentially dangerous.

on recipient side of things, have webmail , have regular e-mail clients. purposes, consider 'webmail' displays html e-mail part of in html, , regular e-mail clients displays html e-mail in different context (e.g. os- , program-specific gui).

what should webmail html headers (<head>, <title>, <meta>, ...) in e-mail?
there spec somewhere, actual standard or de-facto-standard?

my motivation asking use html purifier sanitise our html , if core.collecterrors feature reports changes, they're reported. 'reported' both necessary... , frustrating. strip out of reported errors insignificant our purposes, html headers mark massive hurdle:

someone potentially use <link> in e-mail, strip out. (html purifier intended html fragments, not full documents)

the desire use things <link> in html e-mails seems exist, , there plenty of e-mail clients send <meta>-tags in html header (e.g. outlook), how things handled in wild? safe strip them out silently (which our purposes denotes 'non-breaking change') , lay proverbial blame on sending party if does break? reasonable? has ever decided in 1 or other way? google-fu weak. :(

i doubt there spec anywhere specifies how html emails should embedded webmail clients. it's question of achieving parity existing webmail providers provide ability view html email. suspect stylesheets notable exception, suspect html mailers support heavy styling constrained in can , cannot do, given how webmail things may handle them. i'd suggest doing experiments, , consulting source code of open-source webmail systems squirrelmail.

if worried information loss, 1 thing many clients allow download original html, offline viewing. of course, tends pretty atrocious, don't know why that.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -