Mail Fetching schedule is stopped when connection failure happens during mail deletion

Mail Fetching schedule is stopped when connection failure happens during mail deletion

Mail Fetching schedule is stopped when connection failure happens during mail deletion.

Error Trace:

[11:49:57:638]|[10-23-2021]|[com.adventnet.servicedesk.helpdesk.mail.task.MailFetchingTask]|[INFO]|[276]: delete mode start|
[11:49:57:864]|[10-23-2021]|[SYSERR]|[INFO]|[276]: com.manageengine.servicedesk.mailutils.MailException: Exception while setting delete flag|
[11:49:57:864]|[10-23-2021]|[SYSERR]|[INFO]|[276]: at com.adventnet.servicedesk.helpdesk.mail.task.MailFetchingTask.emailThreadOfEWS(MailFetchingTask.java:560)|
[11:49:57:864]|[10-23-2021]|[SYSERR]|[INFO]|[276]: at
..........
..........
[11:49:57:864]|[10-23-2021]|[SYSERR]|[INFO]|[276]: at java.lang.Thread.run(Thread.java:748)|
[11:49:57:864]|[10-23-2021]|[SYSERR]|[INFO]|[276]: Caused by: microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: An internal server error occurred. Try again later., This connection to Store is dead|

Fix:
To identify the above issue as connectivity issue added the error message "This connection to Store is dead" internally so that this excepction will be considered as connectivity exception and current schedule alone will be skipped

Reference Ticket: 

Files Modified:
<SDP>\helpdesk\src\library\com\manageengine\servicedesk\mailutils\MailAPI.java

Jar Compatibility :
    11309 SDP Build version

      New to ADSelfService Plus?

        Resources