adcb3bd917
UTF-8 encode the db_creation_date_key globally.
2019-03-13 09:47:24 -07:00
6dd8a04a40
Added banned IPs count to digest.
2019-03-06 08:11:52 -08:00
ace1a94834
Fixed misplaced html argument in mail_digest call.
2019-03-06 00:12:04 -08:00
f9d71346ba
Fixed HTML template spacing.
2019-03-06 00:02:46 -08:00
e8eafc027b
Added --html argument and templates.
2019-03-05 23:47:30 -08:00
e5981669d8
Fixed sorting, added --sort argument.
2019-03-05 23:46:50 -08:00
7152766ca1
Fixed bug where db_creation_date_key was never found in the db keys.
2019-03-05 20:09:34 -08:00
7f3892f556
Event dates are now stored in UTC, and printed/mailed using the local timezone.
2019-02-25 13:02:14 -08:00
01beb565d1
Converted dates in mail_digest to local timezone.
2019-02-24 22:31:01 -08:00
25365b3a06
Added --quiet argument.
2019-02-24 22:22:21 -08:00
Enrico Tagliavini
45eaab6f60
Add cosmetic message when no even is recorded
2017-06-23 11:43:19 +02:00
Enrico Tagliavini
ad8670c376
create a new empty database when deleting the old one
...
when --delete is used we should leave an empty database in place. If
fail2ban_digest is used via cron the missing DB will cause an error to
be triggered and the admin will be mailed because one cron job failed,
which is not the case actually
2017-06-23 11:43:14 +02:00
Enrico Tagliavini
0cfe4f940e
better handle missing dbm file, print better error
...
Using the dbm module with autodetection is quite broken. Opening a dbm
file with 'r' flag will raise a useless dbm.error, not inherinting
OSError. The reason for the error is lost. When forcing GNU dbm module a
proper exception is raised.
2017-06-23 11:43:10 +02:00
Enrico Tagliavini
c7ca780df8
use dest argument for add_subparser
...
Instead of setting the value of cmd arg by default use the dest
variable. Also check if no argument is given on command line
2017-06-23 11:42:53 +02:00
Enrico Tagliavini
3066a12a4f
publish to github
2017-06-23 11:42:34 +02:00