Source for file mailto.php
Documentation is available at mailto.php
-  * mailto.php -- mailto: url handler 
-  * This page facilitates handling mailto: links in SquirrelMail.  It checks 
-  * to see if we're logged in, and if we are, it refers the user to the 
-  * compose screen (embedded in a normal, full SquirrelMail interface) with 
-  * the mailto: data auto-populated in the corresponding fields.  If there 
-  * is no user currently logged in, the user is redirected to the login screen 
-  * first, but after login, the compose screen is shown with the correct 
-  * If the administrator desires, $compose_only can be set to TRUE, in which 
-  * case only a compose screen will show, not embedded in the normal 
-  * SquirrelMail interface. 
-  * If the administrator wants to force a re-login every time a mailto: link 
-  * is clicked on (no matter if a user was already logged in), set $force_login 
-  * Use the following URI when configuring a computer to handle mailto: links 
-  *  http://<your server>/<squirrelmail base dir>/src/mailto.php?emailaddress=%1 
-  * see ../contrib/squirrelmail.mailto.NT2KXP.reg for a Windows Registry file 
-  * that will set this up in the most robust manner. 
-  * @copyright 1999-2020 The SquirrelMail Project Team 
-  * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
-  * @version $Id: mailto.php 14845 2020-01-07 08:09:34Z pdontthink $ 
- /** This is the mailto page */ 
- define('PAGE_NAME', 'mailto'); 
-  * Include the SquirrelMail initialization file. 
- require ('../include/init.php');
- // Force users to login each time?  Setting this to TRUE does NOT mean 
- // that if no user is logged in that it won't require a correct login 
- // first!  Instead, setting it to TRUE will log out anyone currently 
- // logged in and force a re-login.  Setting this to FALSE will still 
- // require a login if no one is logged in, but it will allow you to go 
- // directly to compose your message if you are already logged in. 
- // Note, however, that depending on how the client browser manages 
- // sessions and how the client operating system is set to handle 
- // mailto: links, you may have to log in every time no matter what 
- // (IE under WinXP appears to pop up a new window and thus always 
- // start a new session; Firefox under WinXP seems to start a new tab 
- // which will find a current login if one exists). 
- // Open only the compose window, meaningless if $force_login is TRUE 
- // Disable browser caching 
- header('Cache-Control: no-cache, no-store, must-revalidate, max-age=0'); 
- header('Expires: Sat, 1 Jan 2000 00:00:00 GMT'); 
- $trtable - =  array('cc'- =>  'cc',
 
-     $emailaddress - =  trim($emailaddress);
 
-     if (stristr($emailaddress, 'mailto:')) { 
-         $emailaddress - =  substr($emailaddress, 7);
 
-     if (strpos($emailaddress, '?') - !==  FALSE) {
 
-         list ($emailaddress, $a)- =  explode('?', $emailaddress, 2);
-     $data['to'] - =  $emailaddress;
 
-     /* CC, BCC, etc could be any case, so we'll fix them here */ 
-     foreach($_GET as $k- => $g) {
 
-         if (- isset ($trtable[$k])) {
 
-         $redirect - =  'webmail.php?right_frame=compose.php&mailtodata='- .  urlencode(serialize($data));
 
 
	
		Documentation generated on Mon, 13 Jan 2020 04:23:02 +0100 by phpDocumentor 1.4.3