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
Verifying that +lucagrulla is my blockchain ID. https://onename.com/lucagrulla |
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
require 'aws-sdk-cloudwatch' | |
require 'aws-sdk-s3' | |
START_DATE = Time.new(2018,1,21).utc | |
END_DATE = Time.new(2018,1,22).utc | |
REGION = "eu-west-1" | |
CW = Aws::CloudWatch::Client.new(region: REGION) | |
S3 = Aws::S3::Resource.new(region: REGION) |
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 auto_archive_mails() { | |
var filter = "label:inbox and {label:blah label:foo} older_than:3d" | |
var threads = GmailApp.search(filter); | |
console.log("found:", threads.length, " threads"); | |
threads.forEach(function(t) { | |
console.log("archived:", t.getFirstMessageSubject(), t.getLastMessageDate()); | |
t.moveToArchive(); | |
}) | |
console.log("finished."); |
OlderNewer