well, thank you very much for your help, but now i realised, that when user
moves (or "deletes") message,
it moves to .Trash folder and courier-imap doesn't count it's quota. (i'm using
IMP).
if i move a message to any other folder, quota is still being counted. here you
see how files differ:
bash-2.05# ls -l ./.Drafts/cur/
total 96
-rw-r--r-- 1 vmail vmail 48170 Feb 27 21:09
1014837691.6851_0.mail2.m-1.lt,S=48170
-rw-r--r-- 1 vmail vmail 48170 Feb 27 21:09
1014837691.6851_1.mail2.m-1.lt,S=48170
bash-2.05# ls -l ./.Trash/cur/
-rw-r--r-- 1 vmail vmail 48170 Feb 27 21:09
1014837439.6356_0.mail2.m-1.lt,S=48170:2,
-rw-r--r-- 1 vmail vmail 48170 Feb 27 21:09
1014837613.6673_0.mail2.m-1.lt,S=48170:2,
so it seems, that if message is moved to Trash folder, there adds :2.
my wish is to make courier-imap still count quota of these messages.
regards,
Dziugas Baltrunas
----- Original Message -----
From: "Raul Caballero Ortega" <[EMAIL PROTECTED]>
To: "Dziugas Baltrunas" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: 2002 m. vasario 27 d. 20:10
Subject: Re: [courier-users] messages' which are marked as "DELETED" quota isn't
counted
> Dziugas Baltrunas wrote:
>
> > hallo,
> >
> > i'm writing second time for this subject. i'm interested if somebody has
already
> > solved this problem. we have thousands of virtual users, and now it's a
problem,
> > because if user regular marks all messages as "DELETED", he or she could
> > exceed quota hundred of times.
>
> Hi
>
> We had the same problem, and we solved it by commenting the lines below:
>
> /* PATCH - do not count msgs marked as deleted */
> /* we comment this so that it do count the messages marked as deleted*/
> /*for ( ; *n; n++)
> {
> if (n[0] != ':' || n[1] != '2' ||
> n[2] != ',') continue;
> n += 3;
> while (*n >= 'A' && *n <= 'Z')
> {
> if (*n == 'T') break;
> ++n;
> }
> break;
> }
> if (*n == 'T') continue; */
> /* close comments */
>
> This is in the maildirquota.c file.
> When a user marks a message as deleted, a 'T' is appended to the name of the
file,
> this code simply ignores that files when updating the maildirquota.
>
> Hope it will be usefull.
> --
>
> ########################################
> Raul Caballero Ortega [EMAIL PROTECTED]
> Carlos III University Unix System team
> ########################################
>
>
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users