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