Hello Sam!
I have got a box with your Courier and SqWebMail compiled with
--with-trashquota option. Recently I've noticed that the webmail
decreases the quota when moving messages from Trash folder
to other. I think that is a bug, because the message is moved,
not purged. It still exists, but only in the other location.
Below is my patch - notice that I don't use shared folders.
It's rather dirty hack, because first I add the filesize to
the maildirsize and next webmail will subtract it in
maildir_newcheck function. Maybe you have better idea?
My best regards!
Pawel
--- webmail/maildir.c.orig 2005-01-04 14:23:19.000000000 +0100
+++ webmail/maildir.c 2005-01-04 14:26:44.000000000 +0100
@@ -894,12 +894,13 @@
if (!from_shared)
maildir_quota_deleted(".", -filesize, -1);
}
- else if (!dest_shared && maildirquota_countfolder(destdir) &&
- (from_shared || !maildirquota_countfolder(fromdir))
- )
+ else if ((!dest_shared && maildirquota_countfolder(destdir) &&
+ (from_shared || !maildirquota_countfolder(fromdir))) ||
+ (!dest_shared && maildirquota_countfolder(destdir) &&
+ !from_shared && maildirquota_countfolder(fromdir) &&
+ strcmp(from, INBOX "." TRASH) == 0))
/* Moving FROM trash */
{
-
if (maildir_quota_add_start(".", "ainfo,
filesize, 1, NULL))
{
----------------------------------------------------------------------
Dzwon kilka razy taniej! >>> http://link.interia.pl/f1840