processing emails in the background