saveattachment: Save E-Mail Attachment

Description Usage Arguments Details Value Author(s) References Examples

Description

Save an e-mail attachment to a file.

Usage

1
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

1
## to be added

enricoschumann/mailtools documentation built on March 22, 2018, 5:12 a.m.