View source: R/list-attachments.R
list_attachments | R Documentation |
List attachments and content-disposition types
list_attachments(msg_list)
msg_list |
A |
A list
of data.frames
containing the filenames and its
Content-Disposition
types for each fetched message.
Please, note that this is an independent function and not an R6 method that depends on the connection object. Therefore, it should be called alone without the ImapCon object.
Other attachments:
ImapCon
## Not run:
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()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.