# NOT RUN {
# }
# NOT RUN {
# configure IMAP
library(mRpostman)
imapconf <- configure_imap(url="imaps://your.imap.server.com",
username="your_username",
password=rstudioapi::askForPassword()
)
# search
results <- imapconf %>%
select_mailbox(mbox = "INBOX") %>%
search_smaller_than(size = 512000) # smaller than 512KB
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab