Skip to content

Enhancement: Support Exchange proprietary addresses (X.500 DAP) #477

Closed

Description

@dwlabcube

When the recipient is a "strange" address in a .msg file the MiscUtil will throw.
java.lang.IllegalArgumentException: emailAddressList is required
at org.simplejavamail.internal.util.Preconditions.verifyNonnullOrEmpty(Preconditions.java:49) ~[core-module-8.3.1.jar:na]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:

Please see the attachment in order to get an idea of how that address looks like.
Unfortunately i can not share the email with you since it holds sensitive data and I do not know how to reproduce it easily.

emailListTo

It seems to have it's root in handleNameAddressProperty in OutlookRecipient class
AddressParser

Suggestion:
erase the null check in MiscUtil and just log a warning instead of throwing an exception.
Or add a check in handleNameAddressProperty that does not check only on @ but also has an OR with startsWith("/o")

Activity

  1. dwlabcube commented on Oct 24, 2023

    @dwlabcube
    Author

    I created a Pull request in the outlookmessageparser repo:
    dwlabcube:patch-X500-Outlook-Recipient

  2. bbottema commented on Oct 24, 2023

    @bbottema
    Owner

    Is that even a value Outlook/Exchange can resolve? I don't think I've ever seen an address value like this, but perhaps it's valid Exchange-speak.

  3. dwlabcube commented on Oct 24, 2023

    @dwlabcube
    Author

    Yes outlook was able to resolve it properly. It seems to be something with caching and resolving X500 Address or something like that. I have no clue about all that, but it seems to be valid stuff though.

    if you google for "/o=exchangelabs/ou=exchange administrative group" you'll find some information. but honestly i didn't get it what exactly is going on.

    if you don't mind just accepting empty email-address in the miscutil i am very fine with it as well.
    maybe there is even a cleaner solution?

  4. changed the title [-]Recipient as Exchange Member will throw Exception emailAddressList is required[/-] [+]Support Exchange proprietary addresses[/+] on Oct 24, 2023
  5. changed the title [-]Support Exchange proprietary addresses[/-] [+]Enhancement: Support Exchange proprietary addresses (X.500 DAP)[/+] on Dec 3, 2023
  6. added a commit that references this issue on Dec 3, 2023
  7. added this to the 8.3.3 milestone on Dec 3, 2023
  8. bbottema commented on Dec 3, 2023

    @bbottema
    Owner

    8.3.3 was released with improved X500 support when parsing Outlook messages!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions