[Dovecot] 1.0.10 - Getting user-quota from an Apple Open Directory?

Tobias Balle-Petersen tbp at kontrapunkt.com
Fri Feb 15 17:16:54 EET 2008


Hello....

I'm running dovecot 1.0.10 with users in an LDAP database (Apples Open Directory).

In Open Directory, a users mail-info is saved as XML-formated data in the field
apple-user-mailattribute as seen below. I want to extract the value key "kUserDiskQuota".

Nay ideas on how to accomplish this?


<?xml version="1.0" encoding="UTF-8"?>
<dict>
	<key>kAPOPRequired</key>
	<string>APOPNotRequired</string>
	<key>kAltMailStoreLoc</key>
	<string></string>
	<key>kAttributeVersion</key>
	<string>Apple Mail 1.0</string>
	<key>kAutoForwardValue</key>
	<string></string>
	<key>kIMAPLoginState</key>
	<string>IMAPAllowed</string>
	<key>kMailAccountLocation</key>
	<string>blah.example.com</string>
	<key>kMailAccountState</key>
	<string>Enabled</string>
	<key>kPOP3LoginState</key>
	<string>POP3Deny</string>
	<key>kUserDiskQuota</key>
	<string>500</string>
</dict>


Thanks,
Tobias


More information about the dovecot mailing list