1 message in net.sourceforge.lists.courier-sqwebmail[sqwebmail] Moving from Trash and quota
FromSent OnAttachments
Pawel TeczaJan 4, 2005 5:20 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[sqwebmail] Moving from Trash and quotaActions...
From:Pawel Tecza (pawe@poczta.fm)
Date:Jan 4, 2005 5:20:41 am
List:net.sourceforge.lists.courier-sqwebmail

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(".", &quotainfo, filesize, 1, NULL)) {

---------------------------------------------------------------------- Dzwon kilka razy taniej! >>> http://link.interia.pl/f1840