# NOT RUN {
# }
# NOT RUN {
# configure IMAP
library(mRpostman)
imapconf <- configure_imap(url="imaps://your.imap.server.com",
username="your_username",
password=rstudioapi::askForPassword()
)
# copy search results from "Sent" to "INBOX"
results <- imapconf %>%
select_mailbox(mbox = "Sent") %>%
search_before(date_char = "10-may-2012") %$% #exposition pipe operator - pass two argg
copy_msg(imapconf = imapconf, msg_id = msg_id, to_mbox = "INBOX")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab