Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

How to retrieve original attachments from a signed mail using Microsoft Exchange Web services (EWS Managed API) #730

@MonicaJ94

Description

@MonicaJ94

I am using EWS Managed Java API 2.0 for connecting to an Exchange Online (O365) mailbox and read the attachments(txt/xml/pdf) from emails. I am able to establish the connection successfully and read/load attachments from normal emails. But for S/MIME Signed/encrypted emails having "ContentType' as “application/pkcs7-mime; name=smime.p7m”, not able to retrieve original attachments (txt/xml/pdf) instead only smime.p7m is saved as attachment. Tried using item.getMimeContent() method, but still smime.p7m is only shown.
Is there any way to retrieve and load the original attachments using this API. Please suggest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions