On Tue, 2005-05-24 at 10:00 -0500, Ken Jones wrote:
> 
> There isn't any code in now to disable it. But it just needs a
> different
> vexit() return code. Proably take about 15 to 30 minutes to get setup
> and tested.

Any advice on where?  Attached is a patch which we believe may work.

-- 
Rod Taylor <[EMAIL PROTECTED]>
*** vdelivermail.c.orig	Thu May 19 11:22:56 2005
--- vdelivermail.c	Sun May 22 14:11:40 2005
***************
*** 483,488 ****
--- 483,490 ----
               * to the sender.
               */
              if (user_over_maildirquota(address,format_maildirquota(quota))==1) {
+                 printf("user is over quota\n");
+                 vexit(99);
  
                  /* check for over quota message in domain */
                  sprintf(tmp_file, "%s/.over-quota.msg",TheDomainDir);
***************
*** 506,512 ****
--- 508,516 ----
              if (QUOTA_WARN_PERCENT >= 0 &&
                  vmaildir_readquota(address, format_maildirquota(quota))
                      >= QUOTA_WARN_PERCENT) {
+             /* ROD: Skip the warnings.
                  deliver_quota_warning(address, format_maildirquota(quota));
+             */
              }
          }
  
***************
*** 514,519 ****
--- 518,525 ----
  	/* bk: check domain quota */
          if (domain_over_maildirquota(address)==1)
          {
+             printf("user is over quota\n");
+             vexit(99);
              /* check for over quota message in domain */
              sprintf(tmp_file, "%s/.over-quota.msg",TheDomainDir);
              if ( (fs=fopen(tmp_file, "r")) == NULL ) {

Reply via email to