is there a way for an application to be notified when a mail arrives in the standard mail app?
To be more precise, I would like to write an app which is able to read an incoming email from the standard mail app containing a new contact or event in a custom .txt format. Then, the app should add this new contact/event to the ipad. And also viceversa: if a user modifies a contact, my app should be notified and it should be able to compose a new email containing the modified contact information and send this email to a back-end.
Is there a way to achieve this? In particular, I would like to know if my app could be notified when new email arrives.
I did a lot of search on the web but it seems there is no standard framework or notification mechanism to achieve this.