sfsam / Itsycal

Itsycal is a tiny calendar for your Mac's menu bar. http://www.mowglii.com/itsycal
MIT License
3.26k stars 234 forks source link

Detecting meetings URL from outlook safe links #181

Open AliYusuf95 opened 3 years ago

AliYusuf95 commented 3 years ago

I have an issue as stated here https://github.com/leits/MeetingBar/issues/62#issuecomment-724107493, I use Outlook and every link arrives changed to a Safe Link which doesn't match the string used to detect meetings.

https://github.com/sfsam/Itsycal/blob/ca8ce3739f651c4558d3c02bbc8a0b03a97ecc16/Itsycal/EventCenter.m#L368 https://github.com/sfsam/Itsycal/blob/ca8ce3739f651c4558d3c02bbc8a0b03a97ecc16/Itsycal/EventCenter.m#L379

example of safe link URL:

https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fus02web.zoom.us%2Fj%2F000000000&data=xxxx

It needs to split URL params, take url query param and decode it to get the real link.