On Sun, 04 Jan 2009 08:33:08 -0500, Michael A. Puls II <
shadow2531@...> wrote:
> 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.comI see there's "mailto.php?emailaddress=", but it doesn't handle complicated mailto URI data very well or to my liking.
Attached is mailto_protocol_handler2.php. I used mailto.php as a reference.
It produces the exact results I want it to. There are just 2 problems.
1. How do I load compose.php in the right frame AND get compose.php to use ?send_to=&body= etc. like it does when not loaded in a frame?
2. When the user is not logged in, I want to redirect to login.php and retain the send_to=&body= etc. data after the user logs in.
mailto.php does these things, but it uses ?mailtodata=, which uses some funky data format that's percent-encoded, which compose.php decodes etc.
How do I make things work with "send_to=" etc. or how to I convert the to, cc, bcc, body and subject percent-encoded hvalues that I've built into something that ?mailtodata= understands?
If you look at mailto.php, I basically want to support the !$compose_only and $force_login features.
I'm doing this with 1.4.x
Thanks
On a side, when I have a signature set, SM inserts a blank line at the top of the body. How can I remove that?
--
Michael
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB-----
squirrelmail-devel mailing list
Posting guidelines:
http://squirrelmail.org/postingguidelinesList address:
squirrelmail-devel@...
List archives:
http://news.gmane.org/gmane.mail.squirrelmail.develList info (subscribe/unsubscribe/change options):
https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel