Imrpoved the export emails feature

So that it works by groups of few emails.