I have a task to Download attachments from mail,It can be in the form of PDF ZIP and drop box link.
My question here is how can i create a BOT which understand difference between PDF ZIP and drop box link when the email is received and do the following.
- If PDF then Download the attachments directly and store it in a folder name having subject of email as name of the folder
2.If Zip then download the attachment and extract all the PDF/files in to a folder name having subject of email name of the folder.
3.If it is a drop box link then open link and download the File and save it to folder name having subject of email name of the folder.