Added the -n option to set the maximum number of mails to extract.