Re: [courier-users] szmlink counts as quota
SZÉPE Viktor writes: Idézem/Quoting Gordon Messmer : On 05/18/2017 06:31 PM, SZÉPE Viktor wrote: Could it be that that Courier counts Sent folder size three time while calculating quota? Can you test this patch? Thank you!! Sam, could we incorporate this patch? This was merged, with a slight technical change. pgpck9H8x9x5n.pgp Description: PGP signature -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] szmlink counts as quota
Idézem/Quoting Gordon Messmer : On 05/18/2017 06:31 PM, SZÉPE Viktor wrote: Could it be that that Courier counts Sent folder size three time while calculating quota? Can you test this patch? Thank you!! Sam, could we incorporate this patch? SZÉPE Viktor https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md -- +36-20-4242498 [email protected] skype: szepe.viktor Budapest, III. kerület -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] szmlink counts as quota
On 05/18/2017 06:31 PM, SZÉPE Viktor wrote:
Could it be that that Courier counts Sent folder size three time while
calculating quota?
Can you test this patch?
diff --git a/maildir/maildirquota.c b/maildir/maildirquota.c
index 3f3e0bd..3ff78f1 100644
--- a/maildir/maildirquota.c
+++ b/maildir/maildirquota.c
@@ -454,6 +454,9 @@ static int docheckquota(struct maildirsize *info,
dirp=opendir(info->maildir);
while (dirp && (de=readdir(dirp)) != 0)
{
+#ifdef _DIRENT_HAVE_D_TYPE
+ if (de->d_type == DT_LNK) continue;
+#endif
if (countsubdir(info->maildir, de->d_name,
&maxtime, &maildirsize_size,
&maildirsize_cnt))
@@ -520,6 +523,9 @@ static int docheckquota(struct maildirsize *info,
dirp=opendir(info->maildir);
while (dirp && (de=readdir(dirp)) != 0)
{
+#ifdef _DIRENT_HAVE_D_TYPE
+ if (de->d_type == DT_LNK) continue;
+#endif
if (statsubdir(info->maildir, de->d_name, &tm))
{
errno=EIO;
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] szmlink counts as quota
Hello! I am trying to prevent multiple Trash, Junk, Sent folders created by various mail clients. For example these are the symlinks for Sent: .Sent .Sent Items -> .Sent .Sent Messages -> .Sent Could it be that that Courier counts Sent folder size three time while calculating quota? BTW this account is over 1GB quota while the Maildir folder's size is 481 MB. SZÉPE Viktor https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md -- +36-20-4242498 [email protected] skype: szepe.viktor Budapest, III. kerület -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
