Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subject not correct: =?iso-8859-7?Q?.......... #142

Closed
DarkAllMan opened this issue Jul 10, 2015 · 5 comments
Closed

Subject not correct: =?iso-8859-7?Q?.......... #142

DarkAllMan opened this issue Jul 10, 2015 · 5 comments

Comments

@DarkAllMan
Copy link

Some of my received mails contain =?iso-8859-7?Q? in the subject. How can I resolve this?

@DarkAllMan
Copy link
Author

I think the solution is:
http://www.php.net/manual/en/function.imap-utf8.php#102081

So it needs to be added to the decoding of the subject and addresses decoding

Message.php Line: 230
$this->subject = isset($messageOverview->subject) ? iconv_mime_decode($messageOverview->subject,0,"UTF-8") : null;

But probably it needs to be done somewhere else....

@aguzmans
Copy link

I had the same issue and fixed it the same way. It worked for me. Thank you.

@DarkAllMan
Copy link
Author

Sometimes the From address has the same... still need to figure out where to implement this for the from address.

@aguzmans
Copy link

I've used it for the subjects only. I had a list of 2 mails and 3 of them had this issue, but I just filtered everything. I do not have any issues with the addresses, maybe due to. This is what I use to get the sender:

$messages = $this->server->getMessages();
foreach ($messages as $key => $message) {
$sender = $message->getAddresses('from')["address"];
.
.
.
}
Maybe you can try to filter here: $message->getAddresses('from')["address"];

@tedivm
Copy link
Member

tedivm commented Aug 2, 2015

Character encoding has been updated with the current release. I'm asking that people submit new tickets for any bugs that they find.

@tedivm tedivm closed this as completed Aug 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants