问题
I am trying to search outlook mail giving date as parameter in search.
right now I am searching full mailbox then filtering on the basis of received date but problem is by this way it is reading all mail each time. I want a solution where I can search directly by date interval so that it will return mails falling in between date interval.
library(RDCOMClient)
outlook_app <- COMCreate("Outlook.Application")
search<-outlook_app$AdvancedSearch("Inbox","urn:schemas:mailheader:date > '2019-05-22 00:14:10 IST'")
results <- search$Results()
results$Count()
I tried this but it is not working for me. I want all mails came after mentioned date.
回答1:
Do not specify the time zone (IST). '2019-05-22 00:14:10' is what you need.
来源:https://stackoverflow.com/questions/56375203/rdcomclient-outlook-email-search-using-date-interval-in-r