Skip to content

Instantly share code, notes, and snippets.

View thenexahead's full-sized avatar

The Next Ahead thenexahead

  • The Next Ahead
  • Pune,India
View GitHub Profile
@thenexahead
thenexahead / gist:5fc7fdc58c10fd1bb3c3
Created October 15, 2015 06:20 — forked from siygle/gist:9678772
Parse Gmail Inbox to sheet
function processInboxToSheet() {
//var threads = GmailApp.getInboxThreads();
// Have to get data separate to avoid google app script limit!
var start = 0;
var threads = GmailApp.getInboxThreads(start, 100);
var sheet = SpreadsheetApp.getActiveSheet();
var result = [];
for (var i = 0; i < threads.length; i++) {
var messages = threads[i].getMessages();