Merge pull request #90 from guiguidu31300/master

UTF-8 Translation
This commit is contained in:
Robert Hafner 2015-02-05 23:41:24 -08:00
commit b5b790ea75
2 changed files with 3 additions and 3 deletions

View File

@ -93,9 +93,9 @@ class Attachment
$parameters = Message::getParametersFromStructure($structure); $parameters = Message::getParametersFromStructure($structure);
if (isset($parameters['filename'])) { if (isset($parameters['filename'])) {
$this->filename = $parameters['filename']; $this->filename = imap_utf8($parameters['filename']);
} elseif (isset($parameters['name'])) { } elseif (isset($parameters['name'])) {
$this->filename = $parameters['name']; $this->filename = imap_utf8($parameters['name']);
} }
$this->size = $structure->bytes; $this->size = $structure->bytes;

View File

@ -227,7 +227,7 @@ class Message
return false; return false;
$this->subject = isset($messageOverview->subject) ? $messageOverview->subject : null; $this->subject = isset($messageOverview->subject) ? imap_utf8($messageOverview->subject) : null;
$this->date = strtotime($messageOverview->date); $this->date = strtotime($messageOverview->date);
$this->size = $messageOverview->size; $this->size = $messageOverview->size;