Ok... here it is :-)

BTW:
The patch also includes another AIX specific code enhancement:

On AIX the quota block size DEV_BSIZE should be 1024. This is easy to detect, because there is a macro DQBSIZE defined in jfs/quota.h. I've changed quota-fs.c to use DQBSIZE (if present) to initialize DEV_BSIZE.

--- dovecot-1.1.1-orig/src/plugins/quota/quota-fs.c 2008-06-12 22:48:38.000000000 +0200 +++ dovecot-1.1.1/src/plugins/quota/quota-fs.c 2008-07-09 20:09:28.000000000 +0200
@@ -29,6 +29,10 @@
 #  define RQUOTA_GETQUOTA_TIMEOUT_SECS 10
 #endif

+#ifdef DQBSIZE
+#  define DEV_BSIZE DQBSIZE
+#endif
+
 #ifndef DEV_BSIZE
 #  define DEV_BSIZE 512
 #endif



Timo Sirainen schrieb am 12.07.2008 15:14:
On Tue, 2008-07-08 at 16:49 +0200, Ralf Becker wrote:
You see, that _always_ both quota roots are reported, whether
the references mailbox is actually placed on this filesystem or not.

However reading RFC2087 confirms me in the idea, that just the
_related_ quota roots should be listed:

Right.

While I see no way to use namespaces and/or quota rules to configure
this behavior, patching quota.c, quota-fs.c and quota-private.h seems
to be an option.

A downside of this is, that I've to extend the quota plugin interface
(quota_backend_vfuncs) defined in quota-private.h by adding an new
callback function. Since all other quota backends don't have this new
function, they have to initialize it with NULL. So there are side
effects to other quota backends.

Right. If you'll write this code I can include it to v1.2 release.


--
______________________________________________________________________

 Dipl.-Inform. (FH) Ralf Becker     Rechenzentrum (r/ft) der FH Trier
 (Network|Mail|Web|Firewall)           University of applied sciences
 Administrator                           Schneidershof, D-54293 Trier

   Mail: [EMAIL PROTECTED]                    Fon: +49 651 8103 499
    Web: http://www.fh-trier.de/~beckerr        Fax: +49 651 8103 214
 PubKey: http://www.fh-trier.de/~beckerr     Crypto: GnuPG, S/MIME
______________________________________________________________________

 Wenn Gott gewollt haette, dass E-Mail in HTML geschrieben wuerden,
 endeten Gebete traditionell mit </amen>. (Tom Listen)

Attachment: dovecot-quota-root-matching.patch.gz
Description: Binary data

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to