Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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*