Setting mail attributes via command line (dscl?)
Subject : Setting mail attributes via command line (dscl?)
From: Rene Schaetzl <email@hidden >
Date: Mon, 28 Jan 2008 16:11:40 +0800
Delivered-to: email@hidden
Delivered-to: email@hidden
Hey,
I am trying to set a users mail attributes via the commandline. Turns
out that the mail attribute is a plist that has certain switches
enabled:
<?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>my.mail.server.edu</string>
<key>kMailAccountState</key>
<string>Enabled</string>
<key>kPOP3LoginState</key>
<string>POP3Allowed</string>
<key>kUserDiskQuota</key>
<string>50</string>
</dict>
So far I have been trying various combinations using dscl to get that
stored into the dsAttrTypeNative:apple-user-mailattribute field of a
given user, meeting various error messages that are all not really
helpful.
Is there a way I have overlooked using dscl or is there a better tool
for that (in the commandline)?
-- René
-----
Rene Schaetzl
IT Exorcist - Western Academy of Beijing
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.