60

Mail Attributes in User Records

The following table lists the standard XML data structures for a user mail attribute, part of a standard user record.

MailAttribute field

Description

Sample values

AttributeVersion

A required case-insensitive value that

<key>

 

must be set to AppleMail 1.0.

kAttributeVersion

 

 

</key>

 

 

<string>

 

 

AppleMail 1.0

 

 

</string>

 

 

 

MailAccountState

A required case-insensitive keyword

<key>

 

describing the state of the user’s mail.

kMailAccountState

 

It must be set to one of these

</key>

 

values: Off, Enabled, or Forward. <string>

 

 

Enabled

 

 

</string>

 

 

 

POP3LoginState

A required case-insensitive keyword

<key>

 

indicating whether the user is allowed

kPOP3LoginState

 

to access mail via POP. It must be set

</key>

 

to one of these values:

<string>

 

POP3Allowed or POP3Deny.

POP3Deny

 

 

</string>

 

 

 

IMAPLoginState

A required case-insensitive keyword

<key>

 

indicating whether the user is allowed

kIMAPLoginState

 

to access mail using IMAP. It must be

</key>

 

set to one of these values:

<string>

 

IMAPAllowed or IMAPDeny.

IMAPAllowed

 

 

</string>

 

 

 

MailAccountLocation

A required value indicating the

<key>

 

domain name or IP address of the

kMailAccountLocation

 

ProductName responsible for storing

</key>

 

the user’s mail.

<string>

 

 

domain.example.com

 

 

</string>

 

 

 

AutoForwardValue

A required field only if

<key>

 

MailAccountState has the value

kAutoForwardValue

 

Forward. The value must be a valid

</key>

 

RFC 822 email address.

<string>

 

 

user@example.com

 

 

</string>

 

 

 

Chapter 7 Working With Users and Groups

Page 60
Image 60
Apple oxs manual Mail Attributes in User Records, MailAttribute field Description Sample values