RDCOMClient + Outlook email search using date interval in R

隐身守侯 提交于 2019-12-24 20:46:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!