fix for when iNotes' http session unexpectedly expires while exporting mails