IMAP grants are not being detected as invalid

I have two IMAP grants in my account. One connected to Yandex, another GMX.

For test purposes I changed the passwords for both accounts to simulate the user revoking access to them. But a few hours later, Nylas has not updated the grant status of either of this grants. They both display as “Valid” and no webhooks have fired.

They should be “Invalid” so I think this is a bug across all IMAP accounts in Nylas.

Thanks.

@jamesp thanks for posting, will confirm this behaviour. Are you testing out the grant expired webhook event?

I suspect how to revoke a IMAP grant is not via password change, as a sanity check could be sending an email using the grant ID or checking for grant status.

Hi Ram. I’ve tried everything. I’m subscribed to all grant-related webhooks. I’ve tried sending emails using these grants, reading messages, etc.

They remain as valid grants despite throwing various errors when trying to send an email (some HTTP 401, some HTTP 400, some give provider error 535, etc).

The only exception is Yahoo Mail via IMAP. I tested it after I posted this thread. Nylas correctly detected that it’s invalid within a few minutes.

@jamesp if you have a separate thread with support, will have them to follow up.

@jamesp the team is taking a look and will circle back to you.

Hello. Our Support team has reached out to you via email to continue this investigation. Please check your mailbox for our message.