mailto handler (research) (#136)

This commit is contained in:
RainLoop Team 2014-04-16 20:08:37 +04:00
parent 706d4408e7
commit 818bf9fb40
11 changed files with 316 additions and 206 deletions

View file

@ -797,6 +797,26 @@ class ServiceActions
return '';
}
/**
* @return string
*/
public function ServiceMailto()
{
$sTo = \trim($this->oHttp->GetQuery('to', ''));
if (!empty($sTo))
{
if (preg_match('/^mailto:/i', $sTo))
{
$sTo = \substr($sTo, 7);
}
$this->oActions->SetMailtoRequest(\MailSo\Base\Utils::StrToLowerIfAscii($sTo));
}
$this->oActions->Location('./');
return '';
}
/**
* @return string