Learn R Programming

mRpostman (version 0.3.1)

list_attachments: List Attachments

Description

List attachments filenames and Content-Disposition types after fetching full messages.

Usage

list_attachments(msg_list)

Arguments

msg_list

A list containing the full messages fetched from the server after using fetch_full_msg.

Value

A list of data.frames containing the filenames and its Content-Disposition types for each fetched message.

See Also

Other attachments: get_attachments

Examples

Run this code
# 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