>> Perhaps I could do something like this around line 137 of
>> redirect.php....
>>
>> sqGetGlobalVar('other_url', $other_url)
>> if($other_url != '') (
>> $redirect_url = $other_url;
>> ) else (
>> ... the normall $redirect_url setting code ...
>> )
>>
>> Then in all I have to do is POST to redirect.php with the
>> 'login_username', 'secretkey' (password) and 'other_url'......?
>> Though I'm not really sure that sqGetGlobalVar is the right function to
>> use. To get the form var. I have *NO* idea what I'm doing in the
>> SquirrelMail code :(
>>
>
> Looks like you are on the right track, which is what my intention was.
> Just to point you in the right direction. From looking at globals.php in
> the functions directory, it looks like sqGetGlobalVar() is the right
> function to use. It searches in $_SESSION, $_POST, $_GET,
> * $_COOKIE, or $_SERVER. If you knew that you would only ever be using
> POST data, you could just access $_POST['other_url'] and bypass this
> function.
>
Well here is my first peice of real php!
if ( $_POST['reloc_url'] == '' ) {
/* Compute the URL to forward the user to. */
$redirect_url = 'webmail.php';
if ( sqgetGlobalVar('session_expired_location',
$session_expired_location, SQ_SESSION) ) {
sqsession_unregister('session_expired_location');
$compose_new_win = getPref($data_dir, $username,
'compose_new_win', 0);
if ($compose_new_win) {
$redirect_url = $session_expired_location;
} elseif ( strpos($session_expired_location, 'webmail.php') ===
FALSE ) {
$redirect_url =
'webmail.php?right_frame='.urldecode($session_expired_location);
}
unset($session_expired_location);
}
} else {
$redirect_url = $_POST['reloc_url'];
}
And it works! Hurra! I can in a single click view any folder or message!
Now to get this working with my little python IMAP watcher and see if I
can't get a nifty launcher app going.
I suppose there should be some form of input checking to make sure that
the passed value is sain.... but apart from that... I think it does
everything I want.
>>>If you can code in perl, you you shouldn't have too much trouble with
>>> php.
>> Heh.... No php doesn't look all that bad and I've been meaning to get
>> into
>> it more. It's just *yet annother* set of syntax, core functions and
>> methodoligy to learn.
> Tell me about it.
It's a hard 'ol life.... ;)
>>>Hope this helps,
>>
>> It does indeed. You seem to be saying that what I want to do will
>> require
>> coding.... that's question one answered ;)
>>
>> Now all I have to do is figure out the easist and most un-intrusive way
>> of
>> getting this done. Hopefully in some manner that the maintainers will be
>> happy to roll into the next release so that I'm not forever patching new
>> releases. If you can give me any pointers there it would be most handy!
> No prob. Keep us posted.
Cool! My only problem now is that I'm running on a non-standard codebase :(
How likely is it that the maintainers of this fine product will add the
above changes in some form?
Should I assume that I would take that up on the dev list?
Should I make up a patch and send it to someone?
Many thanks!
Nick
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users