save_attachment: Save Attachment

Description Usage Arguments Value

View source: R/save_attachment.R

Description

Save a particular attachment to a location, given an identifier for the Email the desired file is attached to, and some identifier for which attached file to download.

Usage

1
save_attachment(mailItem, attachment, save_path, must_work = FALSE)

Arguments

mailItem

either a COMIDispatch pointer to a MailItem object, or an EntryID for a MailItem

attachment

the name (character) or index (integer) of the attachment to be saved

save_path

character, path to the location where the file should be saved

Value

character, the path where the file was saved, or NA_character_ if a check determines that the file does not exist, meaning that the file was not saved


aecoleman/extrospectr documentation built on Nov. 1, 2019, 8:59 p.m.