Learn R Programming

mRpostman (version 1.1.4)

list_attachments: List attachments and content-disposition types

Description

List attachments and content-disposition types

Usage

list_attachments(msg_list)

Value

A list of data.frames containing the filenames and its

Content-Disposition types for each fetched message.

Arguments

msg_list

A list containing the messages (body or text) fetched from the server.

See Also

Other attachments: ImapCon

Examples

Run this code
if (FALSE) {
con$select_folder(name = "INBOX")
# do a search followed by a fetch operation, then extract the attachments' list
out <- con$search_string(expr = "@k-state.edu", where = "FROM") %>%
  con$fetch_body()
att_list <- list_attachments(msg_list = out)

# or
att_list <- con$search_string(expr = "@k-state.edu", where = "FROM") %>%
  con$fetch_body() %>%
  list_attachments()
}

Run the code above in your browser using DataLab