mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
mailto handler (research) (#136)
This commit is contained in:
parent
706d4408e7
commit
818bf9fb40
11 changed files with 316 additions and 206 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue