Skip to content

Instantly share code, notes, and snippets.

View JonathonBircher's full-sized avatar

JonathonBircher

  • Mysterious Location
View GitHub Profile
function gmailAutoarchive() {
var delayDays = 2; // will only impact emails more than 48h old
var maxDate = new Date();
maxDate.setDate(maxDate.getDate()-delayDays); // what was the date at that time?
// Get all the threads labelled 'autoarchive'
var label = GmailApp.getUserLabelByName("autoarchive");
var threads = label.getThreads(0, 400);
ErrorWarningSystemArrayLogin
[Info] add_airedbefore_to_episodes: Starting migration to 137
2021-03-09 10:25:28,425 DEBG 'sonarr' stdout output:
[Info] MigrationLogger: *** 138: remove_bitmetv migrating ***
2021-03-09 10:25:28,429 DEBG 'sonarr' stdout output:
[Info] remove_bitmetv: Starting migration to 138