This file contains 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 archiveInbox() { | |
var query = 'label:inbox is:read older_than:28d -label:unanswered -label:unread'; | |
var batchSize = 100; | |
while(GmailApp.search(query, 0, 1).length == 1) { | |
GmailApp.moveThreadsToArchive(GmailApp.search(query, 0, batchSize)); | |
} | |
} |
This file contains 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
using System; | |
using MonoTouch; | |
using MonoTouch.UIKit; | |
using System.Drawing; | |
using MonoTouch.Foundation; | |
using System.Text; | |
using System.IO; | |
namespace MRB | |
{ |