-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
429efde
commit 7b760e7
Showing
8 changed files
with
512 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/tmp | ||
/out-tsc | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# IDEs and editors | ||
.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# misc | ||
.sass-cache | ||
connect.lock | ||
typings | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next | ||
|
||
# Lerna | ||
lerna-debug.log | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
.clasp.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Gmail Cleanup | ||
|
||
Google Apps script to purge old emails using filters | ||
|
||
Based upon https://gist.github.com/isiahmeadows/63716b78c58b116c8eb7 | ||
|
||
Use `clasp-watch.sh` to push automatically. | ||
|
||
Develop scripts locally using clasp - https://github.com/google/clasp |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"timeZone": "Europe/London", | ||
"dependencies": { | ||
}, | ||
"exceptionLogging": "STACKDRIVER", | ||
"runtimeVersion": "V8" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
clasp push --watch |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Helper method. One caveat to be aware of is that you should not start | ||
// variables with two underscores - those are reserved for internal use. | ||
function trash(thread) { | ||
thread.moveToTrash(); | ||
} | ||
|
||
__setup = { | ||
queries: [ | ||
// ["in:all -in:trash category:social older_than:15d -is:starred", trash], | ||
// ["in:all -in:trash category:updates older_than:15d -is:starred -label:Important-Label", trash], | ||
// ["in:all -in:trash category:promotions older_than:15d -is:starred -label:Company-News", trash], | ||
// ["in:all -in:trash category:forums older_than:90d -is:starred", trash], | ||
|
||
[ | ||
'\ | ||
(in:all -in:trash -in:spam category:social older_than:2d -is:starred) OR \ | ||
(in:all -in:trash -in:spam -has:userlabels category:updates older_than:2d -is:starred -from:spatialbuzz.com) OR \ | ||
(in:all -in:trash -in:spam -has:userlabels category:promotions older_than:2d -is:starred -from:spatialbuzz.com) OR \ | ||
(in:all -in:trash -in:spam -has:userlabels category:forums older_than:2d -is:starred -from:spatialbuzz.com) OR \ | ||
(-in:trash -in:spam label:monitoring-c01 older_than:2d -is:starred) OR \ | ||
(-in:trash -in:spam label:monitoring-eu-west-1a older_than:2d -is:starred) OR \ | ||
(-in:trash -in:spam label:monitoring-eu-west-1c older_than:2d -is:starred) \ | ||
' | ||
, trash] | ||
], | ||
notify: { | ||
subject: "Gmail Cleanup - Daily Filter Summary", | ||
body: "Number of emails processed: %c", | ||
}, | ||
}; |
Oops, something went wrong.