Skip to content

Instantly share code, notes, and snippets.

@scott-joe
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scott-joe/21df6ab6c49f190be64a to your computer and use it in GitHub Desktop.
Save scott-joe/21df6ab6c49f190be64a to your computer and use it in GitHub Desktop.
Format for Gmail Filter
[
{
"name": "Email Filter Datastore",
"author": {
"name": "Scott Williams",
"email": "scott.joe.williams@gmail.com"
},
"filters": {
"operator": "one of: AND, OR. Is added between each filter group",
"filter-groups": [{
"operator": "one of: AND, OR",
"target": "one of: from, to, subject, body",
"keywords": ["`operator` is added between each of these indicies"]
}]
},
"do": {
"label": ["which labels to apply"],
"read": true,
"archive": true,
"important": false,
"star": false,
"delete": false,
"category": null
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment