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

Encoding issues #136

Closed
Lewiscowles1986 opened this issue Sep 26, 2016 · 10 comments
Closed

Encoding issues #136

Lewiscowles1986 opened this issue Sep 26, 2016 · 10 comments
Labels
Milestone

Comments

@Lewiscowles1986
Copy link

I have an email bodyText that is literally =..j or 3d ac 8f 6a. I Have no idea why, surely an encoding issue would return more bytes?

@jakenoble
Copy link

Same +1

@Lewiscowles1986
Copy link
Author

I haven't spent the greatest amount of time on this @jakenoble but I'm quite sure some of the choices of this lib and the encoder make it unusable.

Can I ask who the email account is with in-case it is a provider issue? Mine is for an old shared hosting account with Dreamhost. I Know something is wrong with their setup as it tells me the mailbox is > 22MB but doesn't get more specific than that (so far my download / backup is 11GB)

@jakenoble
Copy link

I found that running the contents through quoted_printable_decode() fixed the issues I was having. E.g.

$content = quoted_printable_decode($attachment->getContent());

@Lewiscowles1986
Copy link
Author

I'll give it a try, it cannot help, thank you! 😉

@eualexey
Copy link

Does any body know how it's possible to decode the following:

["name":"Ddeboer\Imap\Mailbox":private]=>
string(35) "[Gmail]/&BBIE-0&BA-6&BA-=&BA->&BA-5"

&BBIE-0&BA-6&BA-=&BA->&BA-5 it's folder name in Russian, but I have not clue how to decode it, I've tried online decoders but no result.
Alse Jakenoble's way didn't help.
Thank you!

@Slamdunk Slamdunk added the bug label Sep 22, 2017
@Slamdunk
Copy link
Collaborator

Hi @Lewiscowles1986 , I found encoding issues too, we would appreciate a lot if you can provide a full test case to insert in our test suite: may you help us?

@Lewiscowles1986
Copy link
Author

I've actually stopped using the library some months ago, marked as do not use which means the working copy would be deleted sorry 🤷‍♂️

@Slamdunk
Copy link
Collaborator

Perhaps you're using another library that doesn't face this issue; if so, I would appreciate a reference so we can learn better ways to handle encodings.

@Lewiscowles1986
Copy link
Author

Lewiscowles1986 commented Sep 22, 2017

We've actually jumped to using Thunderbird source and been deriving a solution using Mozilla libraries.

There were no PHP libraries I found that could handle this problem. There were several apps that seemed to avoid the issue, Roundcube was one, Squirrelmail I believe was the other. I didn't spend much effort on a "PHP solution" after this library that I can remember or have notes on. Sorry, but it has been nearly a year.

Slamdunk added a commit that referenced this issue Sep 27, 2017
Message charset: mb_convert_encoding + aliases
Closes #78 #85 #115 #132 #136 #158 #165 #171 #174 #176
@Slamdunk Slamdunk added this to the 1.0 milestone Sep 27, 2017
@Slamdunk
Copy link
Collaborator

@Lewiscowles1986 thank you for your feedback, all the available fixes have been implemented in #196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants