Skip to content

Commit

Permalink
[mms] Fix validating sent messages if the driver supports EAI addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jul 6, 2015
1 parent 273a7bb commit 55c571d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions framework/Mail/lib/Horde/Mail/Transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function prepareHeaders(array $headers)
if (strcasecmp($key, 'From') === 0) {
$parser = new Horde_Mail_Rfc822();
$addresses = $parser->parseAddressList($value, array(
'validate' => true
'validate' => $this->eai ? 'eai' : true
));
$from = $addresses[0]->bare_address;

Expand Down Expand Up @@ -190,7 +190,7 @@ public function parseRecipients($recipients)
// should already be in the headers.
$rfc822 = new Horde_Mail_Rfc822();
return $rfc822->parseAddressList($recipients, array(
'validate' => true
'validate' => $this->eai ? 'eai' : true
))->bare_addresses_idn;
}

Expand Down
4 changes: 2 additions & 2 deletions framework/Mail/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/bsd">BSD-2-Clause</license>
<notes>
*
* [mms] Fix validating sent messages if the driver supports EAI addresses.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -723,7 +723,7 @@
<date>2015-06-24</date>
<license uri="http://www.horde.org/licenses/bsd">BSD-2-Clause</license>
<notes>
*
* [mms] Fix validating sent messages if the driver supports EAI addresses.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 55c571d

Please sign in to comment.