Remove method getMailboxHash()

This commit is contained in:
Frederic Guillot 2017-02-05 17:59:06 -05:00
parent 99b3bfae16
commit 53b0c7bda9
2 changed files with 0 additions and 27 deletions

View File

@ -12,25 +12,6 @@ use Kanboard\Core\Base;
*/
class MailHelper extends Base
{
/**
* Get the mailbox hash from an email address
*
* @access public
* @param string $email
* @return string
*/
public function getMailboxHash($email)
{
if (! strpos($email, '@') || ! strpos($email, '+')) {
return '';
}
list($localPart, ) = explode('@', $email);
list(, $identifier) = explode('+', $localPart);
return $identifier;
}
/**
* Filter mail subject
*

View File

@ -6,14 +6,6 @@ use Kanboard\Helper\MailHelper;
class MailHelperTest extends Base
{
public function testMailboxHash()
{
$helper = new MailHelper($this->container);
$this->assertEquals('test1', $helper->getMailboxHash('a+test1@localhost'));
$this->assertEquals('', $helper->getMailboxHash('test1@localhost'));
$this->assertEquals('', $helper->getMailboxHash('test1'));
}
public function testFilterSubject()
{
$helper = new MailHelper($this->container);