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

IMAP Content-Type differs POP3 and IMAP #706

Closed
cshjsc opened this issue Apr 11, 2024 · 3 comments
Closed

IMAP Content-Type differs POP3 and IMAP #706

cshjsc opened this issue Apr 11, 2024 · 3 comments

Comments

@cshjsc
Copy link

cshjsc commented Apr 11, 2024

When receiving Emails through POP3 the conten-type is not modifed, for example 'text/plain'.
But when receiving with IMAP it gets modified(uppercased) and its 'TEXT/PLAIN', is there
a special reason why this is done.
This is a problem because while testing signed emails, if the contents of the email get modified the hash doesn't match anymore and my test fail.

I checked the source code and found the problem is caused probably by SimpleMessageAttributes:parseBodyStructure(bool)

@marcelmay
Copy link
Member

Media type is defined as case-insensitive.

I will change it to return as provided, and hope it will not cause too many troubles as this might break tests.

@marcelmay marcelmay added this to the 2.1.0-rc-1 milestone Apr 13, 2024
@marcelmay
Copy link
Member

Thx for reporting, @cshjsc !

@cshjsc
Copy link
Author

cshjsc commented Apr 14, 2024

Thanks for the quick solution!

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

No branches or pull requests

2 participants