Configure and create a new IMAP connection.
configure_imap(
url,
username,
password = NULL,
xoauth2_bearer = NULL,
use_ssl = TRUE,
verbose = FALSE,
buffersize = 16000,
timeout_ms = 5000,
...
)
A character string containing the IMAP server address
A character string containing the username.
A character string containing the user's password.
A character string containing the oauth2 bearer token.
A logical indicating the use or not of Secure Sockets Layer
encryption when connecting to the IMAP server. Default is TRUE
.
If FALSE
, mutes the flow of information between the
server and the client. Default is FALSE
.
The size in bytes for the receive buffer. Default is
16000 bytes or 16kb, which means it will use the libcurl's default value.
According to the libcurl's documentation, the maximum buffersize is 512kb
(or 512000 bytes), but any number passed to buffersize
is treated
as a request, not an order.
Time in milliseconds (ms) to wait for the execution or
re-execution of a command. Default is 5000ms (or 5 seconds). If a first
execution is frustrated, an error handler in each function (depending on
the retries
value), will try to reconnect or re-execute the command.
Further curl parameters (see curl::curl_options
) that
can be used with the IMAP protocol. Only for advanced users.
A new `ImapCon` object.