parse-gmail-email
Parse gmail API emails
Last updated 3 years ago by stevelacy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install parse-gmail-email 
SYNC missed versions from official npm registry.

parse-gmail-email

Build Status NPM version

Parse gmail API emails

var parse = require('parse-gmail-email');

var email = 'Your full gmail API email';

parse(email, function(err, data) {
  // =>
  /*
  {
    subject: 'Subject here',
    from: { name: 'Steve Lacy', address: 'me@slacy.me' },
    to: [ { address: 'me@slacy.me', name: 'Steve Lacy' } ],
    cc: [
      { address: 'test@test.com', name: '' }
    ],
    id: '14b9d36df0e',
    threadId: '14b9d3694f7',
    labelIds: [ 'INBOX', 'CATEGORY_UPDATES' ],
    snippet: 'this is a snippet',
    attachments: {
      '2': {
        filename: 'great-websites.md', attachmentId: 'SUCHIDHERE'
      }
    },
    message: 'This is the message'
  }

  */
});


MIT

Current Tags

  • 1.1.1                                ...           latest (3 years ago)

5 Versions

  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |