python3 apply-filter.py config-yaml/apply-filter-config.yaml --from-json data/filters/this_would_be_filter_id_in_name_of_file.json
python3 apply-filter.py config-yaml/apply-filter-config.yaml --from-json data/filters/this_would_be_filter_id_in_name_of_file.json --from-json data/filters/this_would_be_filter_id_in_name_of_file_2.json
python3 apply-filter.py config-yaml/apply-filter-config.yaml --from-json data/filters/this_would_be_filter_id_in_name_of_file.json --remove-older
{
"id": "any-value-if-new-else-it-would-have-if-pre-existing",
"criteria": {
"from": "from:(googlegroups.com)"
},
"action": {
"addLabelIds": [
"newsletters"
]
}
}
{
"id": string,
"criteria": {
"from": string,
"to": string,
"subject": string,
"query": string,
"negatedQuery": string,
"hasAttachment": boolean,
"excludeChats": boolean,
"size": integer,
"sizeComparison": string
},
"action": {
"addLabelIds": [
string
],
"removeLabelIds": [
string
],
"forward": string
}
}