From 6d0ada30d7847a509db10d819020ac653597d073 Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 9 Aug 2011 09:46:54 +0000 Subject: - Fix handling of email addresses with quoted local part (#1487939) --- tests/maildecode.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/maildecode.php b/tests/maildecode.php index 8d359a5b6..ef3d18246 100644 --- a/tests/maildecode.php +++ b/tests/maildecode.php @@ -44,6 +44,8 @@ class rcube_test_maildecode extends UnitTestCase 16 => 'Test Test ((comment)) ', 17 => 'test@domain.tld (comment)', 18 => '"Test,Test" ', + // 1487939 + 19 => 'Test <"test test"@domain.tld>', ); $results = array( @@ -66,6 +68,7 @@ class rcube_test_maildecode extends UnitTestCase 16 => array(1, 'Test Test', 'test@domain.tld'), 17 => array(1, '', 'test@domain.tld'), 18 => array(1, 'Test,Test', 'test@domain.tld'), + 19 => array(1, 'Test', '"test test"@domain.tld'), ); foreach ($headers as $idx => $header) { @@ -73,7 +76,7 @@ class rcube_test_maildecode extends UnitTestCase $this->assertEqual($results[$idx][0], count($res), "Rows number in result for header: " . $header); $this->assertEqual($results[$idx][1], $res[1]['name'], "Name part decoding for header: " . $header); - $this->assertEqual($results[$idx][2], $res[1]['mailto'], "Name part decoding for header: " . $header); + $this->assertEqual($results[$idx][2], $res[1]['mailto'], "Email part decoding for header: " . $header); } } -- cgit v1.2.3