Hey there,
I will use Java mail api and using IMAP i can read your [login to view URL] i will filter out the mails based on your criteria. I can finish this ASAP.
Thanks,
Amit
Sample :
Properties properties = new Properties();
[login to view URL]("[login to view URL]", "imaps");
[login to view URL]("[login to view URL]", [login to view URL], [login to view URL]);