save_attachments: Save an email's attachments

Description Usage Arguments

Description

Saves the emails from a given mailItem DCOM object (from RDCOMClient) to a given folder. If no folder is specified, a temporary directory will be used. This function will return a vector of all file paths to which an attachment has been saved. The attachments will keep their file names as they are displayed in the email. Embedded images, such as those that are present in email signatures, will also be saved.

Usage

1
save_attachments(email, target_dir = tempdir())

Arguments

email

A case-sensitive search query.

target_dir

The folder in which to save the attachments. If no folder is specified, a temporary directory will be used.


mdneuzerling/RDCOMOutlook documentation built on May 21, 2019, 12:21 p.m.