insanum / gcalcli

Google Calendar Command Line Interface
MIT License
3.31k stars 311 forks source link

Avoid errors when using aliases in calendar invites #621

Closed lightheaded closed 1 month ago

lightheaded commented 2 years ago

If the calendar ID (i.e. the primary email) doesn't exactly match the invitee's email, gcalcli agenda --nodeclined will throw an error.

This change changes makes use of the 'self' property of the attendee to determine identity instead of comparing strings, thus enabling support for alias-based invitations.

Now it's possible for firstname.lastname@domain.com to be invited as firstname@domain.com and still use gcalcli agenda --nodeclined.

https://github.com/insanum/gcalcli/issues/620

lightheaded commented 2 years ago

Hi @insanum! Would you mind merging it?

dbarnett commented 1 month ago

Fixed in #701 instead.