From Hein.Roehrig AT cwi.nl Sun Dec 29 11:37:22 2002
Return-Path: <roehrig AT cwi.nl>
Newsgroups: netscape.public.mozilla.mail-news
Subject: site customization for mail
X-No-archive: yes
From: Hein Roehrig <hein AT acm.org>
Date: 29 Dec 2002 17:37:12 +0100
Message-ID: <87lm28eq87.fsf@qaip3.ins.cwi.nl>
Lines: 84
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: Hein Roehrig <Hein.Roehrig AT cwi.nl>
To: undisclosed-recipients: ;
Content-Transfer-Encoding: 8bit

Hello *,

I have been trying to customize our mozilla installation so that
people with new accounts can easily access our mail
services. Imitating the CCK I learned that I just have to create a
mozilla/defaults/isp/mailaccount.rdf file like the one given in the
examples or the one at the end of this message. 

This works great!

However, I would also like to set up a default directory server for
address completion etc. I can't really make much sense of the source
code (yet), so I would appreciate any information on whether this is
easily feasible currently. A concrete question: where is the layout of
the RDF file defined, e.g., where does it say, that below
incomingServer there is IDL entry nsIMsgIncomingServer?

Thanks a lot in advance for any advice,
Hein


<?xml version="1.0"?>
<RDF:RDF
 xmlns:NC="http://home.netscape.com/NC-rdf#"
 xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

<RDF:Description about="NC:ispinfo">
 <NC:providers>
  <NC:nsIMsgAccount about="domain:cwi.nl">

   <!-- server info -->
   <NC:incomingServer>
    <NC:nsIMsgIncomingServer>
     <NC:prettyName>CWI INS</NC:prettyName>
     <NC:hostName>ins-mail.dnsalias.org</NC:hostName>
     <NC:type>imap</NC:type>
     <NC:isSecure>1</NC:isSecure>
     <NC:port>4993</NC:port>
    </NC:nsIMsgIncomingServer>
   </NC:incomingServer>

   <!-- identity defaults -->
   <NC:identity>
    <NC:nsIMsgIdentity>
<!--      <NC:composeHtml>false</NC:composeHtml> -->
     <NC:bccSelf>false</NC:bccSelf>
    </NC:nsIMsgIdentity>
   </NC:identity>

<!-- <NC:ldap> -->
<!-- <NC:nsILDAPServer about="oink"> -->
<!-- <NC:url>ldap://ins-mail.dnsalias.org</NC:url> -->
<!-- <NC:binddn>ou=People,o=CWI INS,c=NL</NC:binddn> -->
<!-- </NC:nsILDAPServer> -->
<!-- </NC:ldap> -->

   <NC:smtp>
    <NC:nsISmtpServer>
     <NC:hostname>ins-mail.dnsalias.org</NC:hostname>
     <NC:trySSL>2</NC:trySSL>
     <NC:port>4587</NC:port>
    </NC:nsISmtpServer>
   </NC:smtp>

   <NC:smtpRequiresUsername>true</NC:smtpRequiresUsername>
   <NC:smtpCreateNewServer>true</NC:smtpCreateNewServer>
   <NC:smtpUsePreferredServer>true</NC:smtpUsePreferredServer>

   <NC:wizardSkipPanels>true</NC:wizardSkipPanels>
   <NC:wizardShortName>cwi</NC:wizardShortName>
   <NC:wizardLongName>CWI INS</NC:wizardLongName>
   <NC:wizardShow>true</NC:wizardShow>
   <NC:wizardPromote>true</NC:wizardPromote>
   <NC:emailProviderName>CWI INS</NC:emailProviderName>
   <NC:sampleEmail>username@cwi.nl</NC:sampleEmail>
   <NC:sampleUserName>username</NC:sampleUserName>
   <NC:emailIDDescription>user name</NC:emailIDDescription>
   <NC:emailIDFieldTitle>User name:</NC:emailIDFieldTitle>
   <NC:showServerDetailsOnWizardSummary>false</NC:showServerDetailsOnWizardSummary>
  </NC:nsIMsgAccount>
 </NC:providers>
</RDF:Description>

</RDF:RDF>

