# NOT RUN {
# }
# NOT RUN {
# configure IMAP
library(mRpostman)
imapconf <- configure_imap(url="imaps://your.imap.server.com",
username="your_username",
password=rstudioapi::askForPassword()
)
results <- imapconf %>%
select_mailbox(mbox = "[Gmail]/Trash") %>%
get_min_id(flag = "UNSEEN")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab