Mail::Decency::LogParser::Aggregator
Aggregates events (sent, reject, bounced) by IP, sender domain and recipient domain in database.
Intervals in strftime format for DateTime
Maintenance Time To Live. In maintenance mode, all entries from the database older then (now - ttl) will be wiped.
Schema for Aggregator is:
Aggregator
(ip|from_domain|to_domain)
Varchar 255 (39 for IP) ..
type
Varchar 25 .. either sent, bounced or reject
interval
Varchar 25 .. the interval value, such as '2010-06-17'
format
Varchar 25 .. the interval format, such as '%Y-%m-%d'
counter
Integer .. the amount
last_update
Integer (timestamp) .. last time updated
Checks wheter incoming mail is whilist for final recipient
Remove old cumulated entries. See maintenance_ttl
Ulrich Kautz <uk@fortrabbit.de>
Copyright (c) 2010 the "AUTHOR" as listed above
This library is free software and may be distributed under the same terms as perl itself.
To install Mail::Decency, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Decency
CPAN shell
perl -MCPAN -e shell install Mail::Decency
For more information on module installation, please visit the detailed CPAN module installation guide.