Tadashi Ichihara writes:
>
> 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...
I don't find codes in lines 786, or am I reading the wrong info. If the
above lines are OK with your solution, where should I appended them to?
Thanks.
+----------------------------------------------------+
| Francis P. Ling [EMAIL PROTECTED] |
| Network Administrator +6084-333366 |
| Pan Sarawak Co Sdn Bhd www.pansar.com.my |
+----------------------------------------------------+
"Facts are stubborn things; and whatever may be our
wishes, our inclinations, or the dictates of our
passions, they cannot alter the state of the facts and
evidence."
-- John Adams, President, United States (1735-1826)
-----------------------------------------------------------
Any opinions, explicit or implied, are solely those of
the author and do not necessarily represent those of PANSAR
-----------------------------------------------------------