We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Secondary transcoding using DecodeRFC2047 is successful
subject := header.Get("Subject") if strings.Contains(subject, "=?") { subject = enmime.DecodeRFC2047(subject) }
The text was updated successfully, but these errors were encountered:
I'd need more info to be able to investigate this. What is header in the snippet you posted? Do you have a sample subject line?
header
Sorry, something went wrong.
The header of the file "1.eml" is the following characters // Subject: =?iso-2022-jp?B?MRskQjdvJE49ODJZJE5ESTJDJEgkSiRqJF4kOSEjGyhC?=
This is part of my code
f, err := os.Open("1.eml") if err != nil { a.log.Error("Open file error", f.Name(), err) } defer f.Close() reader := bufio.NewReader(f) var p enmime.ErrorCollector header, err := enmime.ReadHeader(reader, p) if err != nil { a.log.Error(fmt.Sprintf("Error, %s %s", f.Name(), err.Error())) } subject := header.Get("Subject") if strings.Contains(subject, "=?") { subject = enmime.DecodeRFC2047(subject) }
No branches or pull requests
Secondary transcoding using DecodeRFC2047 is successful
The text was updated successfully, but these errors were encountered: