modified to take recent 3 mails.