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

Recipients appear duplicated #76

Open
bbottema opened this issue Apr 16, 2024 · 1 comment
Open

Recipients appear duplicated #76

bbottema opened this issue Apr 16, 2024 · 1 comment

Comments

@bbottema
Copy link
Owner

bbottema commented Apr 16, 2024

See bbottema/simple-java-mail#504

CC duplicate recipients bug.msg causes recipients to appear duplicated in To and Cc lists.

CC duplicate recipients bug.zip

@bbottema
Copy link
Owner Author

@atmcq, I had a look at this and the issue stems from the fact we determine which address is a TO, CC and BCC, by comparing the 'display names' that we detective to belong to one of these types. Explanation: this library doesn't actually recognize addresses for specific receiver types, only the names that belong to the person. So what we do to reason back which name+addresses combinations are from which type, we compare against these names we got for these receiver types earlier instead.

The problem with this particular message (any many more messages probably) is that both TO and CC receivers share the same name part of the address. It might very well be the same person on different email address too. With the way we check receiver types I described above, both addresses exist in both TO and CC fields.

I don't know enough about Outlook on how to fix this. I have no course of action at this point and any help is welcome.

sanastasiadis added a commit to sanastasiadis/outlook-message-parser that referenced this issue Jun 21, 2024
Instead of checking if the recipient's name exists in the key, just get all the entries of the key (semicolon separated), and search to find them in the general list of recipients
sanastasiadis added a commit to sanastasiadis/outlook-message-parser that referenced this issue Jun 21, 2024
Instead of checking if the recipient's name exists in the key, just get all the entries of the key (semicolon separated), and search to find them in the general list of recipients
sanastasiadis added a commit to sanastasiadis/outlook-message-parser that referenced this issue Jun 21, 2024
…ss, but with the same name and in the same category (to, cc, bcc)
sanastasiadis added a commit to sanastasiadis/outlook-message-parser that referenced this issue Jun 23, 2024
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

1 participant