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
Showing
9 changed files
with
26,993 additions
and
13 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
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
This file was deleted.
Oops, something went wrong.
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,42 @@ | ||
// NOTE: This is a simple example. | ||
// Please refer to https://github.com/mbrt/gmailctl#configuration for docs about | ||
// the config format. Don't forget to change the configuration before to apply it | ||
// to your own inbox! | ||
|
||
// Import the standard library | ||
local lib = import 'gmailctl.libsonnet'; | ||
|
||
// Some useful variables on top | ||
// TODO: Put your email here | ||
local me = 'YOUR.EMAIL@gmail.com'; | ||
local toMe = { to: me }; | ||
|
||
|
||
// The actual configuration | ||
{ | ||
// Mandatory header | ||
version: 'v1alpha3', | ||
author: { | ||
name: 'YOUR NAME HERE', | ||
email: me, | ||
}, | ||
|
||
// TODO: Use your own rules here | ||
rules: [ | ||
{ | ||
filter: toMe, | ||
actions: { | ||
markImportant: true, | ||
}, | ||
}, | ||
{ | ||
filter: { | ||
from: 'bar@yahoo.com', | ||
}, | ||
actions: { | ||
archive: true, | ||
labels: ['foo'], | ||
}, | ||
}, | ||
], | ||
} |
Oops, something went wrong.