Skip to content

MimeMailHelper mail address header fields are not encoded [SPR-6530] #11196

@spring-projects-issues

Description

@spring-projects-issues

Benjamin Peter opened SPR-6530 and commented

It seems like the MimeMailHelper does not encode mail address header fields.

In my expectation adresses like ---"Hans Müller" [email protected]--- should be encoded to something like ---=?ISO-8859-1?Q?"Hans=FXM=FXller?= [email protected]--- if the MimeMailHelper is used to ensure a valid email.

I might also be wrong but please correct me.

As I see it according to RFC 2045 the name part of the address is "phrase" and in RFC 2047 can also be an encoded-word. "phrase = 1*( encoded-word / word )".

I added a small example program to demonstrate the behaviour. Subject and Text are encoded but From: and To: are not.


Affects: 3.0 M3

Attachments:

Referenced from: commits fd3a39d

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions