inbox.py
inbox.py copied to clipboard
Added the log level argument to the parser (-l, --log) which by default ...
...is INFO. The reason for this is to disable DEBUG level logging by default, since a performance degradation was found when collating large volumes of incoming messages.
Additionally, both the address and port arguments were given the (-a, --addr // -p, --port) argument options and were both set to required.
A basic call to dispatch would look like
$ python dasinbox.py --addr 0.0.0.0 --port 4467 --log info or $ python dasinbox.py -a 0.0.0.0 -p 4467 -l info
Of course, INFO can be replaced with the following choices (critical, error, warning, notice, info, debug)
Bump. I think this is interesting as my log files are full of email bodies and growing pretty big.
This has been hanging around for quite some time @kennethreitz - any plans on merging it in? :)