Fix background email processing