Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
| #!/usr/bin/env python | |
| import imaplib | |
| import os | |
| import logging | |
| import optparse | |
| # LABEL = 'support' | |
| # QUERY = 'before:2015-06-01 -label:to-delete' | |
| # DEST = 'to-delete' | |
| LABEL = 'to-delete' |
| # must be absolute path | |
| CATOP = $(PWD)/ca | |
| # see https://gist.github.com/4570053 for sample ca.conf | |
| CACONF = $(CATOP)/../ca.conf | |
| OPENSSL = openssl | |
| DAYS = -days 3652 | |
| CADAYS = -days 3652 | |
| REQ = $(OPENSSL) req -config $(CACONF) | |
| CA = $(OPENSSL) ca -config $(CACONF) |
| # Colorizes the output of the standard library logger, depending on the logger level: | |
| # To adjust the colors, look at Logger::Colors::SCHEMA and Logger::Colors::constants | |
| class ColoredLogger < Logger | |
| module Colors | |
| VERSION = '1.0.1' | |
| NOTHING = '0;0' | |
| BLACK = '0;30' | |
| RED = '0;31' | |
| GREEN = '0;32' |
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.