fix email csv attachments