Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trstringer/parse-gmail-atom
:envelope: Parse Gmail's Atom feed for emails and flatten them out
https://github.com/trstringer/parse-gmail-atom
Last synced: 10 days ago
JSON representation
:envelope: Parse Gmail's Atom feed for emails and flatten them out
- Host: GitHub
- URL: https://github.com/trstringer/parse-gmail-atom
- Owner: trstringer
- Created: 2016-07-29T17:58:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-29T18:26:19.000Z (over 8 years ago)
- Last Synced: 2024-10-11T15:08:56.147Z (24 days ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parse Gmail Atom Feed emails
*Simple command line app that parses the Atom XML feed for Gmail emails*
## Installation
```
npm install --global parse-gmail-atom
```## Usage
```
$ USERNAME="[email protected]"
$ PASSWORD="password"
$ curl -u $USERNAME:$PASSWORD --silent "https://mail.google.com/mail/feed/atom" | pgmail
```## Output
The output has the format of emails being delimited by `***EMAIL***`. For each email portion this is the format...
```
0: EmailId
1: SenderName
2: SenderEmailAddress
3: MessageSubject
4+: MessageBody
```*Note: those line numbers are not included in the output, just here to reference their order*