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

Apply \imap_utf8 on all message headers before parsing them #37

Closed
wants to merge 2 commits into from

Conversation

pepamartinec
Copy link
Contributor

Some message heades may be ISO-encoded and must be converted before proccesing.

For example, we received an email with this date header:

=?ISO-8859-2?Q?Fri,_13_Jun_2014_17:18:44_+020?= =?ISO-8859-2?Q?0_(St=F8edn=ED_Evropa_(letn=ED_=E8as))?=

@cmoralesweb
Copy link
Contributor

I have a problem with some emails I'm trying to download, and I guess it's related with this issue.

The email HTML starts like this:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

And has this in the body:
<p class=MsoNormal>ESPAÑA<o:p></o:p>

But, after saving it to a file, I get this:
<p class=MsoNormal>ESPAA<o:p></o:p>

@ddeboer ddeboer added this to the 1.0 milestone Jan 23, 2015
ddeboer added a commit that referenced this pull request Jan 23, 2015
@ddeboer ddeboer closed this Jan 23, 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

Successfully merging this pull request may close these issues.

3 participants