Can someone show an example of this in objective-c? I have the addressbook framework and mail core to get the inbox. I don’t know how to have it keep checking for new messages and notify when a message comes in with a specific subject.
Elijah
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
MailCore can not send you automatic notifications when things change. Using this framework, you’ll have to periodically ping the server. Create a NSTimer:
E.g. add a property for the last seen message count:
@property NSUInteger lastMessageCount;Then write the polling method:You can now observe that notification and be informed on every folder change. Should be quite easy for you to adjust it to your needs now…