Title: | Read Outlook '.msg' Files |
---|---|
Description: | Forked from hrbrmstr/msgxtractr. 'Microsoft' 'Outlook' messages can be saved in '.msg' files. Tools are provided that enable extraction of metadata, envelope, headers, body and attachments from these files. |
Authors: | Matthijs S. Berends [aut], Bob Rudis [cre], Ariya Hidayat [ctb, cph] (POLE library), Nemanja Trifunovic [ctb, cph] (UTF-8 helpers <https://github.com/nemtrif/utfcpp>) |
Maintainer: | Bob Rudis <[email protected]> |
License: | AGPL |
Version: | 0.3.0.2 |
Built: | 2024-11-04 05:49:50 UTC |
Source: | https://github.com/certe-medical-epidemiology/msgxtractr |
Decode RTF from a raw vector
decode_rtf(v)
decode_rtf(v)
v |
a raw vector |
Is a sequence of raw bytes an RTF document?
is_rtf(v)
is_rtf(v)
v |
a raw vector |
Pretty print a 'msg' object
## S3 method for class 'msg' print(x, ...)
## S3 method for class 'msg' print(x, ...)
x |
a "'msg'" object |
... |
unused |
Read in an Outlook '.msg' file
read_msg(path)
read_msg(path)
path |
path to '.msg' file |
a list
of extracted fields and metadata with class "msg
"
read_msg(system.file("extdata/unicode.msg", package="msgxtractr")) read_msg(system.file("extdata/TestMessage-ansi.msg", package="msgxtractr")) read_msg(system.file("extdata/TestMessage-default.msg", package="msgxtractr")) read_msg(system.file("extdata/TestMessage-unicode.msg", package="msgxtractr"))
read_msg(system.file("extdata/unicode.msg", package="msgxtractr")) read_msg(system.file("extdata/TestMessage-ansi.msg", package="msgxtractr")) read_msg(system.file("extdata/TestMessage-default.msg", package="msgxtractr")) read_msg(system.file("extdata/TestMessage-unicode.msg", package="msgxtractr"))
Save all attachments from a 'msg" object
save_attachments(msg_obj, path = getwd(), use_short = TRUE, quiet = FALSE)
save_attachments(msg_obj, path = getwd(), use_short = TRUE, quiet = FALSE)
msg_obj |
a message object read in with |
path |
directory path to save attachments in (defaults to current directory) |
use_short |
if |
quiet |
if |
a character vector of full path names of files written out (invisibly)
x <- read_msg(system.file("extdata/unicode.msg", package="msgxtractr")) td <- tempdir() res <- save_attachments(x, td) for (f in res) unlink(f)
x <- read_msg(system.file("extdata/unicode.msg", package="msgxtractr")) td <- tempdir() res <- save_attachments(x, td) for (f in res) unlink(f)
Turn a single 'msg' object into a 'tibble'
tidy_msg(x, ...) ## S3 method for class 'msg' as_tibble(x, ...)
tidy_msg(x, ...) ## S3 method for class 'msg' as_tibble(x, ...)
x |
a 'msg' object |
... |
passed on to [tibble::as_tibble()] |