https://github.com/densitydesign/stream-mbox
https://github.com/densitydesign/stream-mbox
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/densitydesign/stream-mbox
- Owner: densitydesign
- License: gpl-3.0
- Created: 2016-09-30T12:13:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-03T15:19:08.000Z (over 9 years ago)
- Last Synced: 2024-11-05T04:34:09.267Z (over 1 year ago)
- Language: JavaScript
- Size: 78.1 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node.js .mbox parser
This script accepts a `.mbox` archive as input and parses it returning the following:
- data wrapped into a CSV file:
- date
- from
- to
- cc
- bcc
- subject
- gmail_label
- attachments
### How to use
0. Install [node.js](https://nodejs.org) and [Github Desktop](https://desktop.github.com)
1. Clone the repo: click on the green button **Clone or Download** > **Open in Desktop**
2. Open the terminal and navigate to the repo folder: `cd path/to/repo/`
3. Install dependencies: `npm install`
3. create a folder and name it **data**: `mkdir data`
4. Place your **.mbox** file into the **data** folder
3. Open the file called **index.js** and change the variable on first line (`var nameMbox = 'Spam.mbox';`) with the name of your **.mbox** file
6. Run: `node index.js`
### Credits
Tiny scripts realised for student of DensityDesign Integrated Course Final Synthesis Studio.
Made use of cool stuff:
- [MailParser](https://github.com/andris9/mailparser)
- [node-mbox](https://github.com/robertklep/node-mbox)