[Dovecot] Odd/Incorrect Quota Reporting on Dovecot 1.2.4 & FreeBSD4

Timo Sirainen tss at iki.fi
Thu Sep 10 00:06:56 EEST 2009


On Wed, 2009-09-09 at 15:07 +0100, Siraj 'Sid' Rakhada wrote:
> Am seeing an odd problem on an old FreeBSD 4.11 box that I'm trying to
> get courier off, and dovecot on. At the same time, I'm trying to put
> some fairly simple quota support on, but getting very odd results.

My guess is that this code doesn't work correctly in
src/plugins/quota/quota-maildir.c:

		if (sscanf(*lines, "%lld %d", &bytes_diff, &count_diff) != 2)
			return -1;

You could try if the attached patch fixes it for you.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: text/x-patch
Size: 815 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20090909/d0220341/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090909/d0220341/attachment-0001.bin 


More information about the dovecot mailing list