leits / MeetingBar

🇺🇦 Your meetings at your fingertips in the macOS menu bar
https://meetingbar.app
Apache License 2.0
4.48k stars 197 forks source link

Feature: Custom RegEx replacement (URL Defense / Proofpoint v2) #539

Closed andrewmin closed 1 year ago

andrewmin commented 1 year ago

URL Defense/Proofpoint wraps external email links so that a third party (Proofpoint) can validate them. As discussed in #384 , you can solve this if your company uses Proofpoint v3 by using custom regexes for the meeting link—e.g., if the link is https://urldefense.com/v3/__https://mongodb.zoom.com/j/xxxxxxxxxxxxxx , you can filter out for just https://mongodb.zoom.com/j/xxxxxxxxxxxxxx

The challenge is that older versions of Proofpoint encode the URLs using UTF-8 (and also seems to throw some garbage at the end). For example, a link to https://meet.google.com/jyx-ifea-jjn will wrap into https://urldefense.proofpoint.com/v2/url?u=https-3A__meet.google.com_jyx-2Difea-2Djjn-3Fhs-3D224&d=DwMFaQ&c=rGIfYmk-1z7cfZPhPNJ2NJAhybwe4_LJFnxef54aLtE&r=mLNoUX_En2gO9geDTc5_aXaXNwQC36GV97jTrpAxXpM&m=kFBGgdOHVg5r5w1EG9xefdaB0FjkIky_N1iPUGkg1A0hjsdAQnWFfShNV8lkQLwl&s=hX9MGZGdvki7XoSbect74rQvY5DvQsUqiz9OGzGAttQ&e= .

Unless I'm mistaken, I think the custom filter is not sufficient—you would also need to replace the UTF-8 codes with characters.

leits commented 1 year ago

Hi @andrewmin, Sorry for the delay, is this still relevant?

andrewmin commented 1 year ago

Interestingly MeetingBar now seems able to join meetings wrapped in URLDefense/proofpoint without any custom regex. Not sure if I missed a release note, but that's great!

leits commented 1 year ago

Awesome!