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

15
tests/units/ToolTest.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
require_once __DIR__.'/Base.php';
use Core\Tool;
class ToolTest extends Base
{
public function testMailboxHash()
{
$this->assertEquals('test1', Tool::getMailboxHash('a+test1@localhost'));
$this->assertEquals('', Tool::getMailboxHash('test1@localhost'));
$this->assertEquals('', Tool::getMailboxHash('test1'));
}
}