saveattachment: Save E-Mail Attachment

MailToolsR Documentation

Save E-Mail Attachment

Description

Save an e-mail attachment to a file.

Usage

saveAttachment(pattern, fname, writeIfExists = TRUE, adjustfn = TRUE)

Arguments

pattern

the attachment to find. Can be a regular expression.

fname

the mbox file

writeIfExists

logical

adjustfn

default is TRUE: adjust filenames on Windows?

Details

The function is currently only tested with mbox files (which is the format that Thunderbird uses, or the format of nnfolders in Gnus (http://www.gnus.org/). The function will load the whole mbox file into memory, which may not work very well if the file is large.

Value

The function is called for its side effect. It returns a character vector of matched attachment names.

Author(s)

Enrico Schumann

References

http://www.gnu.org/software/emacs/manual/html_node/gnus/Mail-Folders.html

Examples

## to be added

enricoschumann/mailtools documentation built on Oct. 27, 2023, 8:14 p.m.