The application should be rewritten to support oauth and the gmail api instead of imaps, given google is going to end support for the way it works right now:
After June 15, 2020 - Users who try to connect to an LSA for the first time will no longer be able to do so. This includes third-party apps that allow password-only access to Google calendars, contacts, and email via protocols such as CalDAV, CardDAV and IMAP. Users who have connected to LSAs prior to this date will be able to continue using them until usage of all LSAs is turned off.
After February 15, 2021 - Access to LSAs will be turned off for all G Suite accounts.
The application should be rewritten to support oauth and the gmail api instead of imaps, given google is going to end support for the way it works right now:
After June 15, 2020 - Users who try to connect to an LSA for the first time will no longer be able to do so. This includes third-party apps that allow password-only access to Google calendars, contacts, and email via protocols such as CalDAV, CardDAV and IMAP. Users who have connected to LSAs prior to this date will be able to continue using them until usage of all LSAs is turned off.
After February 15, 2021 - Access to LSAs will be turned off for all G Suite accounts.