This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| database.addChangeListener(new Database.ChangeListener() { | |
| @Override | |
| public void changed(Database.ChangeEvent event) { | |
| List<DocumentChange> changes = event.getChanges(); | |
| if (changes != null && changes.size() > 0) { | |
| Log.d("CBL", String.format("Found %d changes", changes.size())); | |
| for (int i = 0; i < changes.size(); i++) { | |
| DocumentChange documentChange = changes.get(i); | |
| if (documentChange.isConflict()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function processInboxToSheet() { | |
| //var threads = GmailApp.getInboxThreads(); | |
| // Have to get data separate to avoid google app script limit! | |
| var start = 0; | |
| var threads = GmailApp.search('in:unread', 0, 100); | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var result = []; | |
| for (var i = 0; i < threads.length; i++) { | |
| var thread = threads[i]; |
NewerOlder