Azure / Microsoft365R

R SDK for interacting with Microsoft 365 APIs
Other
308 stars 42 forks source link

How to pull attachments for emails #138

Open p208134 opened 1 year ago

p208134 commented 1 year ago

I have looked at the code and I apologise as I am nowhere near your guys level - but I can't see an easy way to read/pull of emails based on either the system date or the subject name of the email or based on both factors.

For example, if I got an email yesterday and I wanted to pull it off as it always has the same name, I want to use sys.date(-1) and then something like subject_name="KPI Data" but I can't see this functionality despite being hinted.

Secondly, if I recieved a series of data i.e. today with SW KPI1 then another email with SW KPI2 and they both had an attachment, I can't see a way to state pull any attachments based on this date, for this email subjects into R and name it as the folder pulled in from.

I might be wrong but I feel like the functionality is there and I cannot see it?