-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Decode partially encoded address names #511
Showing
5 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
/* | ||
* File: Issue410Test.php | ||
* Category: - | ||
* Author: M.Goldenbaum | ||
* Created: 23.06.23 20:41 | ||
* Updated: - | ||
* | ||
* Description: | ||
* - | ||
*/ | ||
|
||
namespace Tests\issues; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use Tests\fixtures\FixtureTestCase; | ||
use Webklex\PHPIMAP\Attachment; | ||
use Webklex\PHPIMAP\ClientManager; | ||
use Webklex\PHPIMAP\EncodingAliases; | ||
use Webklex\PHPIMAP\Exceptions\AuthFailedException; | ||
use Webklex\PHPIMAP\Exceptions\ConnectionFailedException; | ||
use Webklex\PHPIMAP\Exceptions\ImapBadRequestException; | ||
use Webklex\PHPIMAP\Exceptions\ImapServerErrorException; | ||
use Webklex\PHPIMAP\Exceptions\InvalidMessageDateException; | ||
use Webklex\PHPIMAP\Exceptions\MaskNotFoundException; | ||
use Webklex\PHPIMAP\Exceptions\MessageContentFetchingException; | ||
use Webklex\PHPIMAP\Exceptions\ResponseException; | ||
use Webklex\PHPIMAP\Exceptions\RuntimeException; | ||
use Webklex\PHPIMAP\Message; | ||
|
||
class Issue511Test extends FixtureTestCase { | ||
|
||
/** | ||
* @throws RuntimeException | ||
* @throws MessageContentFetchingException | ||
* @throws ResponseException | ||
* @throws ImapBadRequestException | ||
* @throws InvalidMessageDateException | ||
* @throws ConnectionFailedException | ||
* @throws \ReflectionException | ||
* @throws ImapServerErrorException | ||
* @throws AuthFailedException | ||
* @throws MaskNotFoundException | ||
*/ | ||
public function testIssueEmail() { | ||
$message = $this->getFixture("issue-511.eml"); | ||
self::assertSame("RE: [EXTERNAL] Re: Lorem Ipsum /40 one", (string)$message->subject); | ||
self::assertSame("COMPANYNAME | usługi <sender@sender_domain.tld>", (string)$message->from->first()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
From: COMPANYNAME | =?iso-8859-2?q?us=B3ugi?= <sender@sender_domain.tld> | ||
To: receipent@receipent_domain.tld | ||
Subject: =?utf-8?B?UkU6IFtFWFRFUk5BTF0gUmU6IExvcmVtIElwc3VtIC8=?= =?utf-8?Q?40_one?= | ||
|
||
Test message |