SpiderStrategies / node-gmail-api

Node module to interact with the gmail api
ISC License
154 stars 29 forks source link

Add support for fields in message queries #12

Closed dperry closed 9 years ago

dperry commented 9 years ago

Hi,

This is my first pull request so any advice would be great!

This pull request adds 'optional' user specified 'fields; support (like max). Aka Google only responds with the fields you require, saving bandwidth etc. See https://developers.google.com/gmail/api/guides/performance for more info.

I have attempted to gzip the batch request, as Google suggests this can also provide a performance improvement. However just adding the headers they suggest doesn't work and my understanding of multipart doesn't extend to decode the gzipped response.

Thanks for a great module.

Dan

nathanbowser commented 9 years ago

Thanks! I modified your PR a little bit, but it's now in master and v0.5.0 is out.