fyleAttachmentGrabber: Retrieve Attachments from Email

Description Usage Arguments

View source: R/fyleAttachmentGrabber.R

Description

This function saves all attachments from emails containing specific text in the subject. Works with COM email clients.

Usage

1
2
3
4
5
fyleAttachmentGrabber(
  subject_keyword,
  max_recent_emails = 1000,
  attachment_folder = "saved_attachment_fyles"
)

Arguments

subject_keyword

Search string or regex, though regex is not thoroughly tested. fyleAttachmentGrabber() will search through your email inbox and pull all attachments from any email that has this string in its subject.

max_recent_emails

How many emails to look at. fyleAttachmentGrabber() will search through max_recent_emails or the number of emails in your inbox, whichever is less.

attachment_folder

Optional name of folder to save attachments to. This folder will be created in your current directory. Specifying a directory with a full path may work but is untested.


harryahlas/fysan documentation built on Dec. 20, 2021, 2:51 p.m.