Re: [exim] File count quota problem with exim 4.43

Góra strony
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Dla: exim-users
CC: Christopher Bodenstein
Temat: Re: [exim] File count quota problem with exim 4.43
On Mon, 11 Oct 2004, Philip Hazel wrote:

> I will take a look shortly and see if I can find anything.


It turned out to be a trivial bug. The patch below should fix it.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



*** exim-4.43/src/transports/appendfile.c   Tue Oct  5 09:32:08 2004
--- transports/appendfile.c    Mon Oct 11 10:25:39 2004
***************
*** 2292,2298 ****
    if ((mailbox_size < 0 || mailbox_filecount < 0) &&
        (ob->quota_value > 0 || THRESHOLD_CHECK))
      {
!     int size, filecount;
      DEBUG(D_transport)
        debug_printf("quota checks on directory %s\n", check_path);
      size = check_dir_size(check_path, &filecount, regex);
--- 2294,2301 ----
    if ((mailbox_size < 0 || mailbox_filecount < 0) &&
        (ob->quota_value > 0 || THRESHOLD_CHECK))
      {
!     int size;
!     int filecount = 0;
      DEBUG(D_transport)
        debug_printf("quota checks on directory %s\n", check_path);
      size = check_dir_size(check_path, &filecount, regex);