Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T03:28:21.000Z (7 months ago)
- Last Synced: 2024-10-12T21:24:15.278Z (22 days ago)
- Topics: attachment, msg, outlook, r, r-cyber, rstats
- Language: C
- Homepage:
- Size: 2.11 MB
- Stars: 48
- Watchers: 6
- Forks: 15
- Open Issues: 7
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
- jimsghstars - hrbrmstr/msgxtractr - :card_index: Extract contents from Outlook '.msg' files in R (C)
README
---
output: rmarkdown::github_document
---
[![Build Status](https://travis-ci.org/hrbrmstr/msgxtractr.svg?branch=master)](https://travis-ci.org/hrbrmstr/msgxtractr)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/hrbrmstr/msgxtractr?branch=master&svg=true)](https://ci.appveyor.com/project/hrbrmstr/msgxtractr)
[![codecov](https://codecov.io/gh/hrbrmstr/msgxtractr/branch/master/graph/badge.svg)](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.