compose.php and HTML5's registerProtocolHandler
"Michael A. Puls II" <[email protected]>
| Newsgroups | gmane.mail.squirrelmail.devel |
|---|---|
| Message-ID | <op.um8ilhyh1ejg13@sandra-svwliu01> |
I know that compose.php supports ?send_to=&subject=&body=&send_to_cc=&send_to_bcc= However, is there support for doing it the following way? http://squirrelmail_server.com/src/compose.php?url=mailto%3Ato%2540example.com%3Fsubject%3Dtest%2520subject%26body%3Dline1%250D%250Aline2%26cc%3Dcc%2540example.com%26bcc%3Dbcc%2540example.com The reason I ask is that HTML5's registerProtocolHandler supports %s in its template string, which emits the data like that. This is also how Firefox 3 makes "tools -> options -> applications -> mailto -> Use gmail" work. For example with "https://mail.google.com/mail/?extsrc=mailto&url=%s" and a mailto URI of "mailto:to%40example.com?subject=test%20subject&body=line1%0D%0Aline2&cc=cc%40example.com&bcc=bcc%40example.com", you'd get "https://mail.google.com/mail/?extsrc=mailto&url=mailto%3Ato%2540example.com%3Fsubject%3Dtest%2520subject%26body%3Dline1%250D%250Aline2%26cc%3Dcc%2540example.com%26bcc%3Dbcc%2540example.com", which if you test, works great. <https://developer.mozilla.org/en/DOM/window.navigator.registerProtocolHandler> <http://www.whatwg.org/specs/web-apps/current-work/#dom-navigator-registerprotocolhandler> If SM does not support this, is there any plan to? Thanks -- Michael ------------------------------------------------------------------------------ ----- squirrelmail-devel mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: [email protected] List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel