<evoldap>
  <server>
    <host></host> <!-- e.g. ldap.blaa.com -->
    <port></port> <!-- defaults to 389 -->
    <base_dn></base_dn> <!-- e.g. ou=people,dc=blaa,dc=com -->
  </server>

  <!--
     The values of the following keys:
       - /apps/evolution/mail/accounts
       - /apps/evolution/addressbook/sources
       - /apps/evolution/calendar/sources
       - /apps/evolution/tasks/sources
     will be constructed by applying each LDAP entry which matches
     the "filter" attribute on the <template> tag to the template
     template corresponding to the key.

     If the filter returns multiple values, the value of the MateConf
     key will be a multiple element list.

     Valid variables:
       1) $(USER) - the username
       2) $(EVOLUTION_UID) - mystical magical per-account UID string
       3) $(LDAP_ATTR_foo) - the value of the "foo" attribute on the
                             LDAP entry which matches the filter
    -->

  <template filter="(&amp;(uid=$(USER))(objectClass=inetOrgPerson)(objectClass=evolutionMailAccount)(objectClass=evolutionAddressbookSource)(objectClass=evolutionCalendarSource)(objectClass=evolutionTasksSource))">

    <!-- /apps/evolution/mail/accounts -->
    <account_template>
      <account name="$(LDAP_ATTR_mail)" uid="$(EVOLUTION_UID)" enabled="true">
        <identity>
          <name>$(LDAP_ATTR_cn)</name>
          <addr-spec>$(LDAP_ATTR_mail)</addr-spec>
          <reply-to></reply-to>
          <organization></organization>
          <signature uid=""/>
        </identity>
        <source save-passwd="false" keep-on-server="false" auto-check="false" auto-check-timeout="10">
          <url>$(LDAP_ATTR_evolutionMailSourceURI)</url>
        </source>
        <transport save-passwd="false">
          <url>$(LDAP_ATTR_evolutionMailTransportURI)</url>
        </transport>
        <drafts-folder></drafts-folder>
        <sent-folder></sent-folder>
        <auto-cc always="false">
          <recipients></recipients>
        </auto-cc>
        <auto-bcc always="false">
          <recipients></recipients>
        </auto-bcc>
        <pgp encrypt-to-self="false" always-trust="false" always-sign="false" no-imip-sign="false">
          <key-id></key-id>
        </pgp>
        <smime sign-default="false" encrypt-default="false" encrypt-to-self="false">
          <sign-key-id></sign-key-id>
          <encrypt-key-id></encrypt-key-id>
        </smime>
      </account>
    </account_template>

    <!-- /apps/evolution/addressbook/sources -->
    <addressbook_template>
      <group uid="$(EVOLUTION_UID)" name="Addressbook" base_uri="" readonly="no">
        <source uid="$(EVOLUTION_UID)" name="Addressbook" relative_uri="" uri="$(LDAP_ATTR_evolutionAddressbookURI)"/>
      </group>
    </addressbook_template>

    <!-- /apps/evolution/calendar/sources -->
    <calendar_template> 
      <group uid="$(EVOLUTION_UID)" name="Calendar" base_uri="" readonly="no">
        <source uid="$(EVOLUTION_UID)" name="Calendar" relative_uri="" uri="$(LDAP_ATTR_evolutionCalendarURI)"/>
      </group>p
    </calendar_template>

   <!-- /apps/evolution/tasks/sources -->
   <tasks_template>
      <group uid="$(EVOLUTION_UID)" name="Tasks" base_uri="" readonly="no">
        <source uid="$(EVOLUTION_UID)" name="Tasks" relative_uri="" uri="$(LDAP_ATTR_evolutionTasksURI)"/>
      </group>
    </tasks_template>

  </template>

</evoldap>
