Save attachments to subfolder

The Exchange service EEAttachments can save your attachments or mails automatically to your file-system and process it by your own scripts.
Post Reply
Greenman
Posts: 10
Joined: Tue Aug 18, 2020 12:54 pm

Save attachments to subfolder

Post by Greenman » Fri Jan 29, 2021 11:56 am

Would it be possible to save all attachments per email in a subfolder? I have the requirement to keep all attachments together. I do know the feature to add an exportdate but I'm afraid attachments from two emails will arrive within the same timestamp.

At the moment I use the .eml file to group them together again but I'm running into issues with special characters ( I think MIME encoding) like ë which converts to C+.

Any suggestions?

User avatar
Sven
Site Admin
Posts: 1461
Joined: Sun Jan 06, 2008 9:54 pm
Contact:

Re: Save attachments to subfolder

Post by Sven » Fri Jan 29, 2021 1:38 pm


Greenman
Posts: 10
Joined: Tue Aug 18, 2020 12:54 pm

Re: Save attachments to subfolder

Post by Greenman » Mon Feb 01, 2021 3:54 pm

Hello Sven,

thank you for you suggestion. This is something like I also built. But then the filename is not always converted properly. Pesées is converted to PesxE9es making it unable to know the name of the attachment which has to be moved to another folder. I would also run into issues when suppliers keep sending emails the same filenames like 'invoice.pdf' every month or may be even five in a row.

Any other suggestion?

User avatar
Sven
Site Admin
Posts: 1461
Joined: Sun Jan 06, 2008 9:54 pm
Contact:

Re: Save attachments to subfolder

Post by Sven » Tue Feb 02, 2021 7:44 pm

But the filename should be like it is in the mail if you don't change it in the script. Please provide the script you made.

Greenman
Posts: 10
Joined: Tue Aug 18, 2020 12:54 pm

Re: Save attachments to subfolder

Post by Greenman » Wed Feb 03, 2021 7:17 pm

I used a .bat file, there the conversion went wrong. I now saw all your PowerShell scripts and moved to a PS script. Thank you for your help.

Post Reply