IMAP emails report

IMAP emails report

I want to be able to create a custom field or a report that will show the last email sent date in a record (leads, potentials and contacts) for emails sent by both Zoho CRM and IMAP.
I use Google Mail. How can I use the API to build such customization?