<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
   xmlns:cm="http://www.alfresco.org/model/content/1.0" xmlns:app="http://www.alfresco.org/model/application/1.0"
   xmlns:act="http://www.alfresco.org/model/action/1.0" xmlns:rule="http://www.alfresco.org/model/rule/1.0"
   xmlns:emailserver="http://www.alfresco.org/model/emailserver/1.0"
   xmlns:imap="http://www.alfresco.org/model/imap/1.0" xmlns:d="http://www.alfresco.org/model/dictionary/1.0"
   xmlns:sys="http://www.alfresco.org/model/system/1.0">

    <cm:folder view:childName="${spaces.imapConfig.childname}">
        <app:uifacets/>
        <cm:name>${spaces.imapConfig.name}</cm:name>
        <app:icon>space-icon-default</app:icon>
        <cm:title>${spaces.imapConfig.name}</cm:title>
        <cm:description>${spaces.imapConfig.description}</cm:description>
        <cm:contains>
            <cm:folder view:childName="${spaces.imap_templates.childname}">
                <app:uifacets/>
                <cm:name>${spaces.imap_templates.name}</cm:name>
                <app:icon>space-icon-default</app:icon>
                <cm:title>${spaces.imap_templates.name}</cm:title>
                <cm:description>${spaces.imap_templates.description}</cm:description>
                <cm:contains>
                    <cm:content view:childName="cm:emailbody-textplain.ftl">
                        <view:aspects>
                            <cm:titled></cm:titled>
                            <cm:author></cm:author>
                            <app:inlineeditable></app:inlineeditable>
                        </view:aspects>
                        <view:properties>
                            <app:editInline>true</app:editInline>
                            <cm:description>Email template used to generate the "multipart/alternative" IMAP message body ("text/plain" part).</cm:description>
                            <cm:content>contentUrl=classpath:alfresco/templates/imap/imap_message_text_plain.ftl|mimetype=text/plain|size=|encoding=UTF-8|locale=en_US_</cm:content>
                            <cm:title>emailbody-textplain.ftl</cm:title>
                            <cm:author></cm:author>
                            <cm:name>emailbody-textplain.ftl</cm:name>
                        </view:properties>
                        <view:associations></view:associations>
                    </cm:content>
                    <cm:content view:childName="cm:emailbody-texthtml.ftl">
                        <view:aspects>
                            <cm:titled></cm:titled>
                            <cm:author></cm:author>
                            <app:inlineeditable></app:inlineeditable>
                        </view:aspects>
                        <view:properties>
                            <app:editInline>true</app:editInline>
                            <cm:description>Email template used to generate the "multipart/alternative" IMAP message body ("text/html" part)</cm:description>
                            <cm:content>contentUrl=classpath:alfresco/templates/imap/imap_message_text_html.ftl|mimetype=text/plain|size=|encoding=UTF-8|locale=en_US_</cm:content>
                            <cm:title>emailbody-texthtml.ftl</cm:title>
                            <cm:author></cm:author>
                            <cm:name>emailbody-texthtml.ftl</cm:name>
                        </view:properties>
                        <view:associations></view:associations>
                    </cm:content>
                </cm:contains>
            </cm:folder>
        </cm:contains>
    </cm:folder>


   <cm:folder view:childName="${spaces.emailActions.childname}">
      <view:aspects>
         <emailserver:emailed />
         <rule:rules />
         <cm:auditable />
         <sys:referenceable />
         <emailserver:aliasable />
         <app:uifacets />
      </view:aspects>
      <view:properties>
         <app:icon>space-icon-default</app:icon>
         <cm:description>${spaces.emailActions.description}</cm:description>
         <emailserver:alias>command</emailserver:alias>
         <cm:name>${spaces.emailActions.name}</cm:name>
      </view:properties>
      <view:associations>
         <rule:ruleFolder>
            <cm:systemfolder view:childName="rule:ruleFolder">
               <view:aspects>
                  <cm:auditable />
                  <sys:referenceable />
               </view:aspects>
               <view:properties>
                  <cm:name>6b256b76-fb79-429e-b773-e33fc0588f34</cm:name>
               </view:properties>
               <view:associations>
                  <cm:contains>
                     <rule:rule view:childName="rule:rules48a525f7-c961-4b9f-a06f-f91768cd5a5a">
                        <view:aspects>
                           <cm:titled />
                           <cm:auditable />
                           <sys:referenceable />
                        </view:aspects>
                        <view:properties>
                           <cm:description></cm:description>
                           <cm:title>Start Command Processor</cm:title>
                           <rule:disabled>false</rule:disabled>
                           <rule:applyToChildren>false</rule:applyToChildren>
                           <rule:ruleType>
                              <view:values>
                                 <view:value>inbound</view:value>
                              </view:values>
                           </rule:ruleType>
                           <rule:executeAsynchronously>false</rule:executeAsynchronously>
                           <cm:name>cd446c77-d031-49ed-b26b-2efa9612ee38</cm:name>
                        </view:properties>
                        <view:associations>
                           <rule:action>
                              <act:compositeaction view:childName="rule:action">
                                 <view:aspects>
                                    <cm:auditable />
                                    <sys:referenceable />
                                 </view:aspects>
                                 <view:properties>
                                    <act:executeAsynchronously>false</act:executeAsynchronously>
                                    <act:actionDescription>
                                       <view:value view:isNull="true"></view:value>
                                    </act:actionDescription>
                                    <act:actionTitle>
                                       <view:value view:isNull="true"></view:value>
                                    </act:actionTitle>
                                    <act:definitionName>composite-action</act:definitionName>
                                    <cm:name>1631059f-02a3-462f-9344-52e1a1f6507e</cm:name>
                                 </view:properties>
                                 <view:associations>
                                    <act:conditions>
                                       <act:actioncondition view:childName="act:conditions">
                                          <view:aspects>
                                             <cm:auditable />
                                             <sys:referenceable />
                                          </view:aspects>
                                          <view:properties>
                                             <act:definitionName>no-condition</act:definitionName>
                                             <act:invert>false</act:invert>
                                             <cm:name>eed3c378-2351-4735-ac72-6cfb7cfd52a1</cm:name>
                                          </view:properties>
                                       </act:actioncondition>
                                    </act:conditions>
                                    <act:actions>
                                       <act:action view:childName="act:actions">
                                          <view:aspects>
                                             <cm:auditable />
                                             <sys:referenceable />
                                          </view:aspects>
                                          <view:properties>
                                             <act:executeAsynchronously>false</act:executeAsynchronously>
                                             <act:actionDescription>
                                                <view:value view:isNull="true"></view:value>
                                             </act:actionDescription>
                                             <act:actionTitle>
                                                <view:value view:isNull="true"></view:value>
                                             </act:actionTitle>
                                             <act:definitionName>script</act:definitionName>
                                             <cm:name>bed70283-5f54-4122-8d2e-1f8330d43970</cm:name>
                                          </view:properties>
                                          <view:associations>
                                             <act:parameters>
                                                <act:actionparameter view:childName="act:parameters">
                                                   <view:aspects>
                                                      <cm:auditable />
                                                      <sys:referenceable />
                                                   </view:aspects>
                                                   <view:properties>
                                                      <act:parameterValue>
                                                         <view:value view:datatype="d:category">/app:company_home/app:dictionary/app:scripts/cm:command-processor.js</view:value>
                                                      </act:parameterValue>
                                                      <act:parameterName>script-ref</act:parameterName>
                                                      <cm:name>3afcb3ef-ad28-412d-b7d8-04aeb9c20174</cm:name>
                                                   </view:properties>
                                                </act:actionparameter>
                                             </act:parameters>
                                          </view:associations>
                                       </act:action>
                                    </act:actions>
                                 </view:associations>
                              </act:compositeaction>
                           </rule:action>
                        </view:associations>
                     </rule:rule>
                  </cm:contains>
               </view:associations>
            </cm:systemfolder>
         </rule:ruleFolder>
         <cm:contains>



            <cm:folder view:childName="${spaces.searchAction.childname}">
               <view:aspects>
                  <rule:rules/>
                  <cm:auditable/>
                  <sys:referenceable/>
                  <app:uifacets/>
               </view:aspects>
               <view:properties>
                  <app:icon>space-icon-default</app:icon>
                  <cm:description>${spaces.searchAction.description}</cm:description>
                  <cm:name>${spaces.searchAction.name}</cm:name>
               </view:properties>
               <view:associations>
                  <rule:ruleFolder>
                     <cm:systemfolder view:childName="rule:ruleFolder">
                        <view:aspects>
                           <cm:auditable></cm:auditable>
                           <sys:referenceable></sys:referenceable>
                        </view:aspects>
                        <view:properties>
                           <cm:name>879a6234-e586-4fc2-af5c-0c7b0839b85a</cm:name>
                        </view:properties>
                        <view:associations>
                           <cm:contains>
                              <rule:rule view:childName="rule:rules8b4e9e48-9e56-4494-a81e-f0e139ecda65">
                                 <view:aspects>
                                    <cm:titled></cm:titled>
                                    <cm:auditable></cm:auditable>
                                    <sys:referenceable></sys:referenceable>
                                 </view:aspects>
                                 <view:properties>
                                    <cm:description></cm:description>
                                    <cm:title>Process Command</cm:title>
                                    <rule:disabled>false</rule:disabled>
                                    <rule:applyToChildren>false</rule:applyToChildren>
                                    <rule:ruleType>
                                       <view:values>
                                          <view:value>inbound</view:value>
                                       </view:values>
                                    </rule:ruleType>
                                    <rule:executeAsynchronously>false</rule:executeAsynchronously>
                                    <cm:name>18f42dda-060b-40d5-9cf1-32a6713f7a4c</cm:name>
                                 </view:properties>
                                 <view:associations>
                                    <rule:action>
                                       <act:compositeaction view:childName="rule:action">
                                          <view:aspects>
                                             <cm:auditable></cm:auditable>
                                             <sys:referenceable></sys:referenceable>
                                          </view:aspects>
                                          <view:properties>
                                             <act:executeAsynchronously>false</act:executeAsynchronously>
                                             <act:actionDescription>
                                                <view:value view:isNull="true"></view:value>
                                             </act:actionDescription>
                                             <act:actionTitle>
                                                <view:value view:isNull="true"></view:value>
                                             </act:actionTitle>
                                             <act:definitionName>composite-action</act:definitionName>
                                             <cm:name>9b4b8128-4066-4772-857f-d798976e8a76</cm:name>
                                          </view:properties>
                                          <view:associations>
                                             <act:conditions>
                                                <act:actioncondition view:childName="act:conditions">
                                                   <view:aspects>
                                                      <cm:auditable></cm:auditable>
                                                      <sys:referenceable></sys:referenceable>
                                                   </view:aspects>
                                                   <view:properties>
                                                      <act:definitionName>no-condition</act:definitionName>
                                                      <act:invert>false</act:invert>
                                                      <cm:name>ff5e3091-c1b3-4054-9215-bc42ca636661</cm:name>
                                                   </view:properties>
                                                </act:actioncondition>
                                             </act:conditions>
                                             <act:actions>
                                                <act:action view:childName="act:actions">
                                                   <view:aspects>
                                                      <cm:auditable></cm:auditable>
                                                      <sys:referenceable></sys:referenceable>
                                                   </view:aspects>
                                                   <view:acl></view:acl>
                                                   <view:properties>
                                                      <act:executeAsynchronously>false</act:executeAsynchronously>
                                                      <act:actionDescription>
                                                         <view:value view:isNull="true"></view:value>
                                                      </act:actionDescription>
                                                      <act:actionTitle>
                                                         <view:value view:isNull="true"></view:value>
                                                      </act:actionTitle>
                                                      <act:definitionName>script</act:definitionName>
                                                      <cm:name>df4f46b9-b031-4518-bfcb-65fb5dee3b12</cm:name>
                                                   </view:properties>
                                                   <view:associations>
                                                      <act:parameters>
                                                         <act:actionparameter
                                                            view:childName="act:parameters">
                                                            <view:aspects>
                                                               <cm:auditable></cm:auditable>
                                                               <sys:referenceable></sys:referenceable>
                                                            </view:aspects>
                                                            <view:properties>
                                                               <act:parameterValue>
                                                                  <view:value view:datatype="d:category">/app:company_home/app:dictionary/app:scripts/cm:command-search.js</view:value>
                                                               </act:parameterValue>
                                                               <act:parameterName>script-ref</act:parameterName>
                                                               <cm:name>d7d7eb0e-e1b9-4503-928f-fa84c9fe412f</cm:name>
                                                            </view:properties>
                                                         </act:actionparameter>
                                                      </act:parameters>
                                                   </view:associations>
                                                </act:action>
                                             </act:actions>
                                          </view:associations>
                                       </act:compositeaction>
                                    </rule:action>
                                 </view:associations>
                              </rule:rule>
                           </cm:contains>
                        </view:associations>
                     </cm:systemfolder>
                  </rule:ruleFolder>
               </view:associations>
            </cm:folder>



         </cm:contains>
      </view:associations>
   </cm:folder>
</view:view>



















