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

iCalendar information for requests from Outlook missing #183

Open
Ruffman opened this issue Sep 23, 2020 · 3 comments
Open

iCalendar information for requests from Outlook missing #183

Ruffman opened this issue Sep 23, 2020 · 3 comments
Assignees
Milestone

Comments

@Ruffman
Copy link

Ruffman commented Sep 23, 2020

If I try to synchronize a mail-item which has a meeting request in the iCalendar format attached to it,
none of the related functions return any information for this attachment.

This seems to be the case when the request is from outlook to outlook.

Now text/calendar information is usually transmitted in the mail-header or in an .ics file.
Outlook seems to only use the mail-header.

So it's like this:

  1. Organizer sends request (Outlook); information is in the mail-header
  2. Attendee receives request (Outlook); information is removed from the header and processed
  3. Now the Ex-Sync which I'm working on synchronizes between Outlook and the app I'm working on through the exchange-store. At this point information for the request is nowhere to be found.

Outlook takes the information out of the header so item::get_internet_message_headers() doesn't work.
There is no information in item::get_attachments() either.
There is nothing in item::get_body().content().
There is nothing in item::get_mime_content().

Am I doing something fundamentally wrong or does someone have an idea?

Thank you.

@idolum idolum self-assigned this Sep 25, 2020
@idolum
Copy link
Member

idolum commented Sep 25, 2020

Hi Ruffmann,
right now, I don't fully understand your use case. You use ews-cpp to search for the invitation as well as the confirmation to process them in your app? In which folders do you search? Do you get other items that are located in the same store?

Regarding

There is no information in item::get_attachments() either.
There is nothing in item::get_body().content().
There is nothing in item::get_mime_content().

Does refer to Item class? There such functions:

body get_body() const

std::vector<attachment> get_attachments() const

std::string get_mime_content() const

Or do you refer to something different?

@Ruffman
Copy link
Author

Ruffman commented Sep 25, 2020

Hey idolum,

I use ews-cpp to sync mails and calendar events between the exchange store and my app, which is working fine. Except for when there is an email with an event-request attached to it. I'd like to process this request in the app so that the app sends out an answer (Accept / Decline).

Yes I refer to the item-class functions.

As far as I understand, MS exchange takes the event-information out of the mail-header and generates an item-attachment for the mail-item. At least that is how I believe it should work, but I might be wrong.

Thanks for the help.

@idolum
Copy link
Member

idolum commented Oct 1, 2020

Hi Ruffman,

sorry for the late reply! Was quiet busy the last days. Ok, it might be the case that Exchange server does some magic with the ics files. I will try it myself the next days.

@idolum idolum added the question label Oct 1, 2020
@idolum idolum pinned this issue Oct 21, 2020
@idolum idolum added this to the 0.10 milestone Mar 15, 2021
@idolum idolum modified the milestones: 0.10, 0.11 Jan 5, 2022
@idolum idolum modified the milestones: 0.11, 0.12 Nov 28, 2022
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

2 participants