Email classification sample

The following is a sample multilevel configuration. In this configuration, the organization is using 6 levels of classification:

<emailClassificationMarks>
        <options>
           <multilevelEnabled>yes</multilevelEnabled>
           <listSeparator> / </listSeparator>
           <classificationSource>topBody</classificationSource>
           <classifications>ON</classifications>
           <classificationDefault>Public</classificationDefault>
           <caveats>ON</caveats>
           <caveatDefault>Private</caveatDefault>
         </options>
          <classifications>
            <classification>
              <select>Public</select>
              <subject>[Public]</subject>
              <topBody>Classification: Public</topBody>
           </classification>
           <classification>
              <select>Privileged</select>
              <subject>[Privileged]</subject>
              <topBody>Classification: Privileged</topBody>
            </classification>
            <classification>
              <select>Confidential</select>
              <subject>[Confidential]</subject>
              <topBody>Classification: Confidential</topBody>
            </classification>
            <classification>
              <select>Secret</select>
              <subject>[Secret]</subject>
              <topBody>Classification: Secret</topBody>
            </classification>
        </classifications>
       <caveats>
         <caveat>
           <select>Private</select>
           <subject>[Private]</subject>
           <topBody>Ownership: Private</topBody>
         </caveat>
         <caveat>
           <select>Company</select>
           <subject>[Company]</subject>
           <topBody>Ownership: Company</topBody>
         </caveat>
       </caveats>
        <levels>
<!-- Level 1 – The following level is titled – “Classification:” It is set as mandatory, is configured as a single select, and after it has been set, it cannot be downgraded when replying or forwarding to this email message. This level can have following values : Public, Privileged, Confidential, Secret. -->
           <level>
              <levelId>1</levelId>
              <level-options>
                 <levelState>required</levelState>
                 <defaultItem>Public</defaultItem>
                 <downgradeAllowed>no</downgradeAllowed>
                 <levelTitle>Classification</levelTitle>
                 <bodyPrefix>Classification: </bodyPrefix>
                 <bodyPostfix></bodyPostfix>
                 <subjectPostfix></subjectPostfix>
              </level-options>
              <items>
                 <item>
                    <select>Public</select>
                    <subject>[Public]</subject>
                    <topBody>Public</topBody>
                    <itemId>1</itemId>
                 </item>
                 <item>
                    <select>Privileged</select>
                    <subject>[Privileged]</subject>
                    <topBody>Privileged</topBody>
                    <itemId>2</itemId>
                 </item>
                 <item>
                    <select>Confidential</select>
                    <subject>[Confidential]</subject>
                    <topBody>Confidential</topBody>
                    <itemId>3</itemId>
                 </item>
                 <item>
                    <select>Secret</select>
                    <subject>[Secret]</subject>
                    <topBody>Secret</topBody>
                    <itemId>4</itemId>
                 </item>
              </items>
           </level>
           <level>
<!-- Level 2. This level is titled “Ownership” It is configured as a single select and after it has been set, it cannot be downgraded when replying or forwarding to this email message. This level have following values : Private, Company. -->
              <levelId>2</levelId>
              <level-options>
                 <defaultItem>Private</defaultItem>
                 <downgradeAllowed>no</downgradeAllowed>
                 <levelTitle>Ownership</levelTitle>
                 <bodyPrefix> Ownership: </bodyPrefix>
                 <bodyPostfix></bodyPostfix>
                 <subjectPrefix> </subjectPrefix>
                 <subjectPostfix></subjectPostfix>
              </level-options>
              <items>
                 <item>
                    <select>Private</select>
                    <subject>[Private]</subject>
                    <topBody>Private</topBody>
                    <itemId>1</itemId>
                 </item>
                 <item>
                    <select>Company</select>
                    <subject>[Company]</subject>
                    <topBody>Company</topBody>
                    <itemId>2</itemId>
                 </item>
              </items>
           </level>
           <level>
<!-- Level 3 This level is titled “Releasability”.  Is is configured as a single select and is not mandatory.This level have following values : Internal , External, Partners, Suppliers, and has suffix “Only”. -->
              <levelId>3</levelId>
              <level-options>
                 <defaultItem>Internal</defaultItem>
                 <levelTitle>Releasability</levelTitle>
                 <bodyPrefix>, Releaseability </bodyPrefix>
                 <bodyPostfix> Only</bodyPostfix>
                 <subjectPrefix></subjectPrefix>
                 <subjectPostfix></subjectPostfix>
              </level-options>
              <items>
                 <item>
                    <select>Internal</select>
                    <subject>[Internal]</subject>
                    <topBody>Internal</topBody>
                    <itemId>1</itemId>
                 </item>
                 <item>
                    <select>External</select>
                    <subject>[External]</subject>
                    <topBody>External</topBody>
                    <itemId>2</itemId>
                 </item>
                 <item>
                    <select>Partners</select>
                    <subject>[Partners]</subject>
                    <topBody>Partners</topBody>
                    <itemId>3</itemId>
                 </item>
                 <item>
                    <select>Suppliers</select>
                    <subject>[Suppliers]</subject>
                    <topBody>Suppliers</topBody>
<!-- Level 4. This level is disabled if "Internal” was selected in level 3. This level is active if any other option is selected in level 3.This level is titled “Available for”. It is a multi-select level and has the following values : Europe, APAC, Russia, Brazil, US and Canada, China, Latin America, All. -->
                    <itemId>4</itemId>
                 </item>
              </items>
           </level>
           <level>
              <levelId>4</levelId>
              <level-options>
                 <multipleSelect>yes</multipleSelect>
                 <levelTitle>Available for</levelTitle>
                 <bodyPrefix>&#10;Available for </bodyPrefix>
                 <bodyPostfix></bodyPostfix>
                 <subjectPrefix> [</subjectPrefix>
                 <subjectPostfix>]</subjectPostfix>
                 <enableList>
                    <enableForLevelId>3</enableForLevelId>
                    <enableForItems>
                       <enableForItemId>2</enableForItemId>
                       <enableForItemId>3</enableForItemId>
                       <enableForItemId>4</enableForItemId>
                    </enableForItems>
                 </enableList>
                         </level-options>
              <items>
                 <item>
                    <select>Europe</select>
                    <subject>Europe</subject>
                    <topBody>Europe</topBody>
                    <itemId>1</itemId>
                 </item>
                 <item>
                    <select>APAC</select>
                    <subject>APAC</subject>
                    <topBody>APAC</topBody>
                    <itemId>2</itemId>
                 </item>
                 <item>
                    <select>Russia</select>
                    <subject>Russia</subject>
                    <topBody>Russia</topBody>
                    <itemId>3</itemId>
                 </item>
                 <item>
                    <select>Brazil</select>
                    <subject>Brazil</subject>
                    <topBody>Brazil</topBody>
                    <itemId>4</itemId>
                 </item>
                 <item>
                    <select>US and Canada</select>
                    <subject>US and Canada</subject>
                    <topBody>US and Canada</topBody>
                    <itemId>5</itemId>
                 </item>
                 <item>
                    <select>China</select>
                    <subject>China</subject>
                    <topBody>China</topBody>
                    <itemId>6</itemId>
                 </item>
                 <item>
                    <select>Latin America</select>
                    <subject>Latin America</subject>
                    <topBody>Latin America</topBody>
                    <itemId>7</itemId>
                 </item>
              </items>
           </level>
           <level>
<!--  Level 5. This level has no title and is optional. This level have following values: Limited, Not Limited -->
              <levelId>5</levelId>
              <level-options>
                 <bodyPrefix> </bodyPrefix>
              </level-options>
              <items>
                 <item>
                    <select>Limited</select>
                    <subject>Limited</subject>
                    <topBody>Limited</topBody>
                    <itemId>1</itemId>
                 </item>
                 <item>
                    <select>Not Limited</select>
                    <subject>Not Limited</subject>
                    <topBody>Not Limited</topBody>
                    <itemId>2</itemId>
                 </item>
                </items>
           </level>
           <level>
<!--  Level 6 This level is titled : “Administrative Markings” and is optional. It is a multi-select level and has the following values: COMMERCIAL, BUSINESS, MANAGEMENT, MEDICAL, HR , MARKETING. -->
              <levelId>6</levelId>
              <level-options>
                    <multipleSelect>yes</multipleSelect>
                 <levelTitle>Administrative Markings</levelTitle>
                 <bodyPrefix>&#10;Administrative Markings: </bodyPrefix>
                 <bodyPostfix></bodyPostfix>
                 <subjectPrefix> [</subjectPrefix>
                 <subjectPostfix>]</subjectPostfix>
              </level-options>
              <items>
                 <item>
                    <select>None</select>
                    <subject>None</subject>
                    <topBody>None</topBody>
                    <itemId>1</itemId>
                 </item>
                 <item>
                    <select>COMMERCIAL</select>
                    <subject>COMMERCIAL</subject>
                    <topBody>COMMERCIAL</topBody>
                    <itemId>2</itemId>
                 </item>
                 <item>
                    <select>BUSINESS</select>
                    <subject>BUSINESS</subject>
                    <topBody>BUSINESS</topBody>
                    <itemId>3</itemId>
                 </item>
                 <item>
                    <select>MANAGEMENT</select>
                    <subject>MANAGEMENT</subject>
                    <topBody>MANAGEMENT</topBody>
                    <itemId>4</itemId>
                 </item>
                 <item>
                    <select>MEDICAL</select>
                    <subject>MEDICAL</subject>
                    <topBody>MEDICAL</topBody>
                    <itemId>5</itemId>
                 </item>
                 <item>
                    <select>HR</select>
                    <subject>HR</subject>
                    <topBody>HR</topBody>
                    <itemId>6</itemId>
                 </item>
                 <item>
                    <select>MARKETING</select>
                    <subject>MARKETING</subject>
                    <topBody>MARKETING</topBody>
                    <itemId>7</itemId>
                 </item>
              </items>
           </level>
        </levels>
      </emailClassificationMarks>