# NOT RUN {
# }
# NOT RUN {
# configure IMAP
library(mRpostman)
imapconf <- configure_imap(url="imaps://your.imap.server.com",
username="your_username",
password=rstudioapi::askForPassword()
)
# search
result <- imapconf %>%
select_mailbox(mbox = "INBOX") %>%
custom_search(custom_request = OR(on(date_char = "17-Apr-2019"),
on(date_char = "17-Jul-2018")))
# searches for messages On "17-Apr-2019" OR On "17-Jul-2018".
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab