Hello.
I've been experimenting with vpopmail yesterday and I've found that if
I comment a call to maildir_addquota function in user_over_maildirquota
(line 296) in maildirquota.c then maildirsize file is updated only
once and with correct message size.
As far as I could test, all other functionality is not affected - messages are
delivered to real users and aliases, if user is overquota then message
is rejected, user receives warning that his mailbox is full.
Could someone please take a look at the code and check if this
modification breaks something? The main problem is that I'm not a
programmer - I can write more or less complex bash/perl scripts, but
not even 'hello world' program in C.
Thanks in advance.
*** ./maildirquota.c 2009-08-24 19:01:47.000000000 +0400
--- /downloads/qmailrocks/vpopmail-5.4.28/maildirquota.c 2009-10-29
14:56:52.000000000 +0300
***************
*** 293,299 ****
if (quotafd >= 0) close(quotafd);
ret_value = 1;
} else {
! maildir_addquota(dir, quotafd, q, stat_buf.st_size,
1);
if (quotafd >= 0) close(quotafd);
ret_value = 0;
}
--- 293,299 ----
if (quotafd >= 0) close(quotafd);
ret_value = 1;
} else {
! //maildir_addquota(dir, quotafd, q, stat_buf.st_size,
1);
if (quotafd >= 0) close(quotafd);
ret_value = 0;
}
--
Best regards,
Pavel mailto:[email protected]
!DSPAM:4ae983c932718754611414!