[prev in list] [next in list] [prev in thread] [next in thread]
List: qmail-ldap
Subject: Re: quota handling and creating Mailbox
From: Claudio Jeker <jeker () n-r-g ! com>
Date: 1998-11-30 13:24:03
[Download RAW message or body]
At 18:47 Uhr +0100 25.11.1998, Andrzej Kosmol wrote:
>I've wrote here that qmail-ldap dont want to creat Mailbox file if it is
>deleted or just dont exist ..
>BUt after the last pathc it was creating ...
>
>BUT
>
>only when it is using SYSTEM (QMAILDOTMODE dotonly)
>
>but when using qmaildotmode both the Mailbox file is not created (atleast
>on my sys)
>
>DOes any one have this same problem?
I think the problem exist only when the quota is set to a value other then
0. You should get an error like "Unable to qouta Mailbox no such file".
Here is a patch, just replace the "#ifdef QLDAP ... #endif part" in the
function void mailfile(fn) at line 257 with the following stuff
#ifdef QLDAP /* quota handling mbox */
struct stat filest, pipest;
unsigned long int totalsize;
if (seek_begin(0) == -1) temp_rewind();
if(g_quota != 0 ) {
if (stat(fn, &filest) == -1)
if ( errno != error_noent) /* FALSE if file doesn't exist */
strerr_die5x(111,"Unable to quota ", fn, ": ",error_str(errno),".
(#4.2.1)");
if (fstat(0, &pipest) != 0)
strerr_die5x(111,"Unable to quota ", "mail (pipe)", ":
",error_str(errno),". (#4.2.1)");
totalsize = filest.st_size + pipest.st_size;
if ( totalsize > g_quota ) {
/* probably we could do a second check (to deliver very big messages) */
quota_bounce();
} else if ( totalsize > g_quota/100UL*80UL )
quota_warning();
}
#endif /* end -- quota handling mbox */
have fun
Claudio
----- electrical engineers do it with less resistance -----
mailto:jeker@n-r-g.com
http://www.stud.ee.ethz.ch/~cjeker
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic