Add Sendgrid integration (incoming email handling)

This commit is contained in:
Frederic Guillot
2015-04-19 19:23:42 -04:00
parent ac86c3100a
commit f190be9e2d
37 changed files with 380 additions and 89 deletions

View File

@@ -31,4 +31,24 @@ class Tool
fclose($fp);
}
}
/**
* 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;
}
}