Skip to content

EmailConverter.outlookMsgToEmail duplicates recipients #241

@Faelean

Description

@Faelean

I'm currently using v6.0.0-rc2.
When converting an Outlook .msg file to Email like this

//ByteArrayInputStream
Email email = EmailConverter.outlookMsgToEmail(stream));

List<Recipient> recipients = email.getRecipients()

the list of recipients contains every 'cc' entry also as a 'to' entry. For example if I have an Email like this

To: support@company.com
Cc: teamleadSupport@company.com

the list of recipients contains three entries,

[{
	address = 'support@company.com', 
	type = 'To'
},
{
	address = 'teamleadSupport@company.com', 
	type = 'To'
},
{
	address = 'teamleadSupport@company.com', 
	type = 'Cc'
}]

instead of the expected two.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions