# 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(smaller_than(
size = 512000),
younger_than(
seconds = 3600)
)
)
# searches for messages that are Smaller Than 512 KB OR Younger Than 3600
# seconds (or one hour).
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab