Muljawan Hendrianto writes: 

> Hello Sam, 
> 
> sorry if I am not so clear in my previous email.
> I don't use filesystem quota. What I am using is maildirsize, which will be used by 
>qmail also.
> Any idea what else could be wrong ? 
> 
> thanks, 
> 
> Muljawan 
> 
> On Thu, Nov 01, 2001 at 07:20:49AM +0000, Sam Varshavchik wrote:
>> Muljawan Hendrianto writes:  
>> 
>> > Hello all, 
>> > 
>> > I am quite new to sqwebmail.
>> > I have a problem with my sqwebmail installation.
>> > Currently I am using version 1.0 with Maildir, the problem I have is that if the 
>maildir is  100% full, then the user can't delete the emails.
>> > I will get the error messages "Internal error (module maildir.c, line 748) - 
>contact system administrator". 

sqwebmail 1.0 is over a year old.  This bug was fixed a long time ago.  You 
should upgrade to the current version, or apply the following patch. 

-- 
Sam 

--- sqwebmail-1.0/sqwebmail/maildir.c.save      Thu Nov  1 04:01:15 2001
+++ sqwebmail-1.0/sqwebmail/maildir.c   Thu Nov  1 04:02:10 2001
@@ -737,17 +737,8 @@
 
                        if (*from != ':')
                        {
-                               do
-                               {
-                                       rc=maildir_checkquota(".", &quotafd,
-                                               quotabuf, -filesize, -1);
-                                       if (rc && errno != EAGAIN)
-                                       {
-                                               if (quotafd >= 0)
-                                                       close(quotafd);
-                                               enomem();
-                                       }
-                               } while (rc);
+                               maildir_checkquota(".", &quotafd,
+                                       quotabuf, -filesize, -1);
                                maildir_addquota(".", quotafd, quotabuf,
                                        -filesize, -1);
                        }

Reply via email to