gmailctl
Declarative configuration for Gmail filters
... messages got mislabled and you try to understand why. You scroll through that horrible mess of filters, you wish you could find and replace stuff, test the changes on your filters before applying them, refactor some filters together... in a way treat them like you treat your code. Gmail allows one to import and export filters in XML format. This can be used to maintain them in a better way.