The attached fjar is given as a fix for TVS customer for 12007 build.
The fixes are copied from the previously given fjar to the same customer (in 11309 build).
Fix:
1. Skip the mail fetching schedule on any delete flag exception
2. Notify users on every occurrence of connectivity exception (by default, users will be notified after a threshold value of 5)
3. store.isConnected() is checked while checking for connectivity exception.
Since customer is migrating the production instance to 12007, configure the below page script. This will allow him to configure O365 mailbox with IMAPS protocol using Oauth authentication.
Please don't use this fjar for other customers.