Added mail helper

This commit is contained in:
Frederic Guillot
2016-06-01 21:28:24 -04:00
parent ca87b1b60f
commit c50255813b
8 changed files with 103 additions and 35 deletions

View File

@@ -12,26 +12,6 @@ use Pimple\Container;
*/
class Tool
{
/**
* Get the mailbox hash from an email address
*
* @static
* @access public
* @param string $email
* @return string
*/
public static function getMailboxHash($email)
{
if (! strpos($email, '@') || ! strpos($email, '+')) {
return '';
}
list($local_part, ) = explode('@', $email);
list(, $identifier) = explode('+', $local_part);
return $identifier;
}
/**
* Build dependency injection container from an array
*