https://github.com/hrbrmstr/msgxtractr
:card_index: Extract contents from Outlook '.msg' files in R
https://github.com/hrbrmstr/msgxtractr
attachment msg outlook r r-cyber rstats
Last synced: 25 days ago
JSON representation
:card_index: Extract contents from Outlook '.msg' files in R
- Host: GitHub
- URL: https://github.com/hrbrmstr/msgxtractr
- Owner: hrbrmstr
- Created: 2017-08-23T11:23:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T03:28:21.000Z (about 1 year ago)
- Last Synced: 2025-03-18T01:11:13.710Z (29 days ago)
- Topics: attachment, msg, outlook, r, r-cyber, rstats
- Language: C
- Homepage:
- Size: 2.11 MB
- Stars: 49
- Watchers: 5
- Forks: 15
- Open Issues: 7
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
Awesome Lists containing this project
- jimsghstars - hrbrmstr/msgxtractr - :card_index: Extract contents from Outlook '.msg' files in R (C)
README
---
output: rmarkdown::github_document
---
[](https://travis-ci.org/hrbrmstr/msgxtractr)
[](https://ci.appveyor.com/project/hrbrmstr/msgxtractr)
[](https://codecov.io/gh/hrbrmstr/msgxtractr)`msgxtractr` : Read Outlook '.msg' Files
'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.
The following functions are implemented:
- `read_msg`: Read in an Outlook '.msg' file
- `save_attachments`: Save all attachments from a 'msg' object
- `tidy_msg`: Turn a 'msg' object into a 'tibble'### Installation
```{r eval=FALSE}
devtools::install_github("hrbrmstr/msgxtractr")
``````{r message=FALSE, warning=FALSE, error=FALSE, include=FALSE}
options(width=120)
```### Usage
```{r message=FALSE, warning=FALSE, error=FALSE}
library(msgxtractr)# current version
packageVersion("msgxtractr")str(msg1 <- read_msg(system.file("extdata/unicode.msg", package="msgxtractr")))
print(msg1)
str(msg2 <- read_msg(system.file("extdata/TestMessage-ansi.msg", package="msgxtractr")))
str(msg3 <- read_msg(system.file("extdata/TestMessage-default.msg", package="msgxtractr")))
str(msg4 <- read_msg(system.file("extdata/TestMessage-unicode.msg", package="msgxtractr")))
str(tidy_msg(msg1), 2)
str(tidy_msg(msg2), 2)
str(tidy_msg(msg3), 2)
str(tidy_msg(msg4), 2)
```### Code of Conduct
Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.