Spam Statistic

gustavmuenster

New Member
Dec 27, 2006
25
0
1
Hello

How can I change the SPAM Statistic, that it will only count SPAM with Level >= 5?

Actually, it will count all with Level >= 3.

Thanks

Regards.

Gustav
 
Thats not directly possible, but you can see the Spam-level distribution at Statistics/General/Spam.

- Dietmar
 
Hello

When havei changed the line in /var/www/proxmox/statistic/general/spam.htm

from
$rest -= $ref->{count} if $ref->{spamlevel} >= 3;

to
$rest -= $ref->{count} if $ref->{spamlevel} >= 5;


Must I change anything other, also?

Thanks

Regards

Gustav
 
Yes, you need to change the whole statistics database code - which is not possible.

- Dietmar
 
I you really want to hack query the sql database directly:

# psql -U postgres -d Proxmox_ruledb
> SELECT spamlevel, COUNT(spamlevel) AS count FROM CStatistic WHERE virusinfo IS NULL AND ptime > 0 GROUP BY spamlevel ORDER BY spamlevel LIMIT 10;

hope that helps.

- Dietmar
 
well, you do not need LIMIT 10 here, maybe this is better:

> SELECT COUNT(spamlevel) AS count FROM CStatistic WHERE virusinfo IS NULL GROUP BY spamlevel ORDER BY spamlevel;

and you will miss some mail (last 7 days) because they are stored in another database.

- Dietmar
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!