Moved fetch emails to email library