Hello Sir,
Most of the time, there is a way on the webmail to recover deleted emails. As you did not provide any details of your mail server or your webmail account, there is no way to tell for sure. But i can help you recover those using the webmail interface. IMAP does not cache anything. It only sync what it can find on the webmail.
Hoping to hear from you soon.
Thanks
Ador