List attachments filenames and Content-Disposition types after fetching full messages.
list_attachments(msg_list)
A list
containing the full messages fetched from
the server after using fetch_full_msg
.
A list
of data.frames
containing the filenames and its
Content-Disposition types for each fetched message.
Other attachments: get_attachments
# NOT RUN {
# }
# NOT RUN {
# configure IMAP
library(mRpostman)
imapconf <- configure_imap(url="imaps://your.imap.server.com",
username="your_username",
password=rstudioapi::askForPassword()
)
# listing attachments
attachments <- 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) %>%
list_attachments()
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab