extract_email_attachements: extract_email_attachements to their dirs AFTER calling...

View source: R/utils_email.R

extract_email_attachementsR Documentation

extract_email_attachements to their dirs AFTER calling offlineimap

Description

extract_email_attachements to their dirs AFTER calling offlineimap

Usage

extract_email_attachements(
  maildir,
  onlynew = TRUE,
  keep = ".*\\.(TXT|txt|csv|CSV)",
  cnf = config::get()
)

Arguments

maildir

ARGOS or GSM_MTI

onlynew

default to TRUE

keep

default to ".*\.(TXT|txt)"

cnf

configuration variables are obtained from an external file config file. default to config::get().

Note

When offlineimap() is called independently then, call extract_email_attachements(onlynew = FALSE) once so that no new emails are disregarded.

Examples

## Not run: 
 dup::extract_email_attachements(maildir = 'ARGOS', onlynew = FALSE)
 extract_email_attachements(maildir = 'GSM_MTI', onlynew = FALSE)
 

## End(Not run)

mpio-be/dup documentation built on April 15, 2024, 8:10 p.m.