Skip to content

Commit

Permalink
[mms] Better exception message for a 550 error, since it is common an…
Browse files Browse the repository at this point in the history
…d may be displayed to an end user (Request #12990).
  • Loading branch information
slusarz committed Mar 4, 2014
1 parent 6b684b2 commit 1464d79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion framework/Smtp/lib/Horde/Smtp/Exception.php
Expand Up @@ -117,7 +117,6 @@ public function setSmtpCode($code)

switch ($code) {
case 450:
case 550:
$this->raw_msg = Horde_Smtp_Translation::r("Mailbox unavailable.");
$this->message = Horde_Smtp_Translation::t($this->raw_msg);
$this->code = self::MAILBOX_UNAVAILABLE;
Expand All @@ -141,6 +140,12 @@ public function setSmtpCode($code)
$this->code = self::LOGIN_REQUIREAUTHENTICATION;
break;

case 550:
$this->raw_msg = Horde_Smtp_Translation::r("Message could not be delivered - the address was not found, is unknown, or is not receiving messages.");
$this->message = Horde_Smtp_Translation::t($this->raw_msg);
$this->code = self::MAILBOX_UNAVAILABLE;
break;

case 551:
$this->code = self::UNKNOWN_LOCAL_USER;
break;
Expand Down
4 changes: 2 additions & 2 deletions framework/Smtp/package.xml
Expand Up @@ -21,7 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Better exception message for a 550 error, since it is common and may be displayed to an end user (Request #12990).
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -338,7 +338,7 @@
<date>2014-02-11</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Better exception message for a 550 error, since it is common and may be displayed to an end user (Request #12990).
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 1464d79

Please sign in to comment.