Write temporary files with mktemp in the same directory as the mail.