Learn R Programming

mRpostman (version 0.9.0.0)

execute_attachment_fetch: Execution engine loop for all the fetch commands

Description

Execution engine loop for all the fetch commands

Usage

execute_attachment_fetch(
  self,
  id,
  id_folder,
  df_meta_to_fetch,
  fetch_request,
  folder_clean,
  url_folder,
  content_disposition,
  override,
  retries
)

Arguments

self

The R6 connection object.

id

A message id obtained inside the main loop in fetch_attachments_int.

id_folder

The name of the folder containing the message id.

df_meta_to_fetch

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.

fetch_request

A string containing the fetch request to the server that will be added to the curl handle.

folder_clean

A character string containing the cleaned folder name, which will be uses to create a local folder.

url_folder

The name of the folder containing the message url of the IMAP server.

content_disposition

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").

override

A logical. If TRUE, overrides existent files containing the same name in the local directory. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default is 1. @noRd