I'm modifying the sms example code from nokia to detect for any new emails received. However, I am now facing problems on how to modify the HandleSessionEventL() function. In particular, what KObservedFolderId are we using for emails? Thank u!
Since you can have multiple e-mail accounts, there is no single and constant UID for them. Although I have never really experimented with e-mails, I would try a negative approach: watch for events happening with messages having e-mail related MTM-s which are not in Draft/Outbox/Sent.