# NOT RUN {
# }
# NOT RUN {
# configure IMAP
library(mRpostman)
imapconf <- configure_imap(url="imaps://your.imap.server.com",
username="your_username",
password=rstudioapi::askForPassword()
)
# fetching
results <- imapconf %>%
select_mailbox(mbox = "TAM") %>%
search_before(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg
fetch_full_msg(imapconf = imapconf,
msg_id = msg_id,
by="UID", write_to_disk = TRUE,
keep_in_mem = FALSE,
partial = "0.789")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab