View source: R/imap-parse-list.R
| parse_bodystructure | R Documentation |
Reads the BODYSTRUCTURE (...) structure of a FETCH response
(RFC 3501, section 7.4.2), as returned by
ImapCon$fetch_metadata(attribute = "BODYSTRUCTURE"), into one row
per MIME part, numbered as in FETCH BODY[<part>].
parse_bodystructure(x)
x |
A |
A data.frame with columns part (the section number,
e.g. "1", "2.1"; multipart containers are listed with
part = NA), type, subtype, charset,
filename, encoding, size (bytes, NA for
containers), disposition, and is_attachment.
x <- paste0('BODYSTRUCTURE (("text" "plain" ("charset" "utf-8") NIL NIL ',
'"quoted-printable" 120 3 NIL NIL NIL NIL)',
'("application" "pdf" ("name" "report.pdf") NIL NIL "base64" ',
'4096 NIL ("attachment" ("filename" "report.pdf")) NIL NIL) ',
'"mixed" ("boundary" "xyz") NIL NIL NIL)')
parse_bodystructure(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.