# NOT RUN {
# }
# NOT RUN {
# configure IMAP
library(mRpostman)
imapconf <- configure_imap(url="imaps://your.imap.server.com",
username="your_username",
password=rstudioapi::askForPassword()
)
# search 1
result1 <- imapconf %>%
select_mailbox(mbox = "INBOX") %>%
search_sent_on(date_char = "17-Dec-2003")
# search 2 (mailboxes with compound names)
result2 <- imapconf %>%
select_mailbox(mbox = "Special Mailbox") %>%
search_sent_on(date_char = "17-Sep-2018", flag = "UNDELETED")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab