Hi.

I'm using vpopmail-4.0.10 with hard quota function.
But ".current_size" file is not be updated correctly by vdelivermail.

vdelivermail udpates ".current_size" file correctly after receiving new
mesg. But when I delete all messages with POP3 client, and then
receiving new mesg, ".current_size" file is be updated as new mesg size
plus old worth.

I changed 'vdelivermail.c' like followings:

-------------------------------------------------------------
@@ -786,6 +786,7 @@
 
                }
        } else {
+               cur_msg_bytes = recalc_quota(".");
                update_quota(cur_msg_bytes + msg_size);
        }

 -------------------------------------------------------------

It looks good. ".current_size" file is be updated correctly.
Is it correct solution ? I wondering...

Reply via email to