Changeset 632


Ignore:
Timestamp:
Oct 19, 2011, 12:08:50 AM (9 years ago)
Author:
ben
Message:

adding mi_virus, see #28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postfix-logtools/poststat/poststat

    r631 r632  
    7070  mi_vir_amav        => 0,
    7171  mi_vir_milt        => 0,
     72  mi_virus           => 0,
    7273  mo_bounced         => 0,
    7374  mo_deferred        => 0,
     
    199200$stat{mi_ham}             = $stat{mi_deliver} - $stat{mi_spam} - $stat{mi_unsure};
    200201
     202$stat{mi_virus}           = $stat{mi_vir_milt} + $stat{mi_vir_amav};
     203
    201204$stat{ci_connect_ext_tot} = $stat{ci_connect_global} - $stat{ci_connect_auth};
    202205$stat{ci_connect_ext}     = $stat{ci_connect_ext_tot} - $stat{ci_connect_mx} - $stat{ci_connect_lan};
     
    204207$stat{ci_connect_tot}     = $stat{ci_connect_ext_tot} + $stat{ci_connect_int_tot};
    205208
    206 $stat{mi_tot} = $stat{mi_inbox} + $stat{mi_robot} + $stat{mi_bounced} + $stat{mo_sent} + $stat{mo_bounced};
     209$stat{mi_tot}             = $stat{mi_inbox} + $stat{mi_robot} + $stat{mi_bounced} + $stat{mo_sent} + $stat{mo_bounced};
    207210
    208211printf("%-20s: %u\n", $_, $stat{$_}) foreach sort keys %stat;
Note: See TracChangeset for help on using the changeset viewer.