I am currently working with selenium and I am using JavaMail API (v. 1.6.2) to retreive mails and parse them for the following uses, e.g: