[Dev] Finding the current/default SMTP and IMAP accounts...
Morgen Sagen
morgen at osafoundation.org
Mon Feb 7 21:55:39 PST 2005
Last week I mentioned there was a new way to determine what the default
WebDAV account was. The same method is now being applied to finding
IMAP and SMTP accounts, so those with a personal parcel need to make
similar changes. Where before there was an 'isDefault' attribute, you
should now instead assign to the 'currentItemOf' attribute as indicated
below:
<Parcel itsName="personal"
xmlns="http://osafoundation.org/parcels/core"
xmlns:mail="http://osafoundation.org/parcels/osaf/contentmodel/mail"
xmlns:current="http://osafoundation.org/parcels/osaf/current"
xmlns:sharing="http://osafoundation.org/parcels/osaf/framework/sharing"
xmlns:this="http://morgen.com/personal"
>
<namespace value="http://morgen.com/personal" />
<sharing:WebDAVAccount itsName="MyDAVAccount">
<displayName value="Personal WebDAV Account"/>
<host value="pilikia.osafoundation.org"/>
<path value="dev1"/>
<username value="dev1"/>
<password value="xxxxxxxx"/>
<useSSL value="False"/>
<port value="80"/>
<currentItemOf itemref="current:WebDAVAccount"/>
</sharing:WebDAVAccount>
<mail:IMAPAccount itsName="MyIMAPAccount">
<displayName value="Personal IMAP Account"/>
<host value="localhost"/>
<username value="morgen"/>
<password value="xxxxxxxx"/>
<useSSL value="False"/>
<port value="143"/>
<defaultSMTPAccount itemref="this:MySMTPAccount"/>
<replyToAddress itemref="this:MyEmailAddress"/>
<currentItemOf itemref="current:IMAPAccount"/> <!--
Changed -->
</mail:IMAPAccount>
<mail:SMTPAccount itsName="MySMTPAccount">
<displayName value="Personal SMTP Account"/>
<host value="localhost"/>
<username value="morgen"/>
<password value="xxxxxxxxx"/>
<useAuth value="False"/>
<useSSL value="False"/>
<port value="25"/>
<currentItemOf itemref="current:SMTPAccount"/> <!--
Changed -->
</mail:SMTPAccount>
<mail:EmailAddress itsName="MyEmailAddress">
<displayName value="Personal Email Address"/>
<emailAddress value="morgen at example.com"/>
<fullName value="Morgen Sagen"/>
</mail:EmailAddress>
More information about the Dev
mailing list