Execution engine loop for all the fetch commands
execute_attachment_fetch(
self,
id,
id_folder,
df_meta_to_fetch,
fetch_request,
folder_clean,
url_folder,
content_disposition,
override,
retries
)
The R6 connection object.
A message id obtained inside the main loop in fetch_attachments_int
.
The name of the folder containing the message id.
A data frame
returned by
extract_MIME_level_and_filename()
containing the filenames, the
MIME level in which each attachment is, and the content-disposition of the
file.
A string containing the fetch request to the server that will be added to the curl handle.
A character
string containing the cleaned folder
name, which will be uses to create a local folder.
The name of the folder containing the message url of the IMAP server.
A string
indicating which type of
"Content-Disposition" attachments should be retrieved. The options are
both
, attachment
, and inline
. Default is
"both"
, which retrieves regular attachments ("Content-Disposition:
attachment") and inline attachments ("Content-Disposition: inline").
A logical
. If TRUE
, overrides existent files
containing the same name in the local directory. Default is FALSE
.
Number of attempts to connect and execute the command. Default
is 1
.
@noRd