qmail-trashquota: a patch for qmail-ldap

Paul Dwerryhouse, paul@dwerryhouse.com.au, September 9th, 2002


When calculating the quota of a maildir, qmail-ldap ignores any mail that has been trashed. While this meets the design of maildir++, it is, in my opinion, a bug in the specification, as users can keep more mail than their quota allows by trashing it without expunging.

The following patch disables this behaviour.

The patch: is here Current version is qmail-trashquota-1.03-20020901-20020909. It is to be patched against qmail 1.03 and qmail-ldap 20020901

Previous versions:

qmailqmail-ldapqmail-trashquota
1.0320020901 20020909
1.0320020718 20020718

Brief instructions:

  • Unpack qmail
  • Patch qmail with qmail-ldap using: patch -p0 < qmail-ldap-1.03-20020901.patch.
  • Patch qmail with qmail-trashquota using: patch -p0 < qmail-trashquota-1.03-20020901-20020909.patch
  • In the top level Makefile, uncomment the line with contents "QUOTAFLAGS=-DTRASHQUOTA"
  • Follow the instructions of qmail & qmail-ldap to install.