Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

jordanlabs/gmail-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gmail filter definition in YAML

What is this?

While in the process of cleaning up monitoring alerts I thought it would be useful to be able to:

  • Version control my filters easily in a format less verbose than XML
  • Create new filters easily based on templates to reuse definitions
  • Generate filters automatically for the servers I look after
  • Have the ability to share filters between colleagues
  • Document filters in the YAML file

How to use

  1. Firstly create a filter template. An example is in templates/definition.tx.
  2. Run outputfilter.pl -c filename to generate a new populated YAML file named filename for filter creation from the template.
  3. Lastly outputfilter.pl -y filename will read the specified YAML file and output the Gmail filters to be imported.

Also demonstrated is a PoC self-service web site to generate filters written in Ruby using the Sinatra web framework.

About

Define Gmail filters in YAML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published