<commit_before>  =======================================================================
  ===         The Apache Software Foundation JAMES Server             ===
  =======================================================================

  Upgrading ...
  -----------------
  
  Please note that you need to start james 2.3.0 once before this steps can be performed. For installation guidelines 
  read the README.
  

  Step 1: Copy mailboxes and users

    Remove the apps/james/var directory and copy the apps/james/var directory of the old james
    installation in this place.


  Step 2: Copy and modify config.xml

    Step 2.1 : Remove fetchpop block
      
      Its necessary to remove the fetchpop block in config.xml cause fetchpop was removed in 2.3.

    
    Step 2.2 : Move mailet and matcher packages config
      
      Move <mailetpackages> and <matcherpackages> outside from the <spoolmanager> block.

      
    Step 2.3 : Add neccassary mailets
      
      Add the <mailet match="All" class="PostmasterAlias"/> as the first mailet of the "root" processor.
      This was hardcoded in 2.2.0 and previous. Now we made it configurable.

      
    Step 2.4 : Move the spoolrepository config
    
      Move the spoolrepository out of the mailstore. Its also necessary to change the config syntax. For example :
      
      <spoolRepository>
         <repository destinationURL="db://maildb/spool/spool" type="SPOOL"/>
      </spoolRepository>

      Must converted to
      <spoolrepository destinationURL="db://maildb/spool/spool" type="SPOOL"/>

 
    Step 2.5 : Move the objectstore
      
      Move the objectstore config into the mailstore config.
      
    Step 2.6 : Add SSL to server-sockets
      
      To be able to use SSL you need to add this SSL config to the server-sockets block:
      
         <!--
         <factory name="ssl" class="org.apache.avalon.cornerstone.blocks.sockets.TLSServerSocketFactory">
            <ssl-factory>
               <keystore>
                  <file>conf/keystore</file>
                  <password><PASSWORD>>
                  <key-password>keysecret</key-password>
                  <type>JKS</type>
                  <protocol>TLS</protocol>
                  <algorithm>SunX509</algorithm>
                  <authenticate-client>false</authenticate-client>
               </keystore>
            </ssl-factory>
         </factory>
         -->
    
    
  Step 3: Modify costum mailets if necessary
    Please note the following things which were changed. So maybe its necessary for you to 
    change some stuff in your mailets.
      <commit_msg>Small language fixes.<commit_after>  =======================================================================
  ===         The Apache Software Foundation JAMES Server             ===
  =======================================================================

  Upgrading ...
  -----------------
  
  Please note that you need to start james 2.3.0 once before the following steps can be performed. For installation guidelines 
  read the README file.
  

  Step 1: Copy mailboxes and users

    Remove the apps/james/var directory and copy the apps/james/var directory of the old james
    installation in this place.


  Step 2: Copy and modify config.xml

    Step 2.1 : Remove the fetchpop block
      
      It's necessary to remove the fetchpop block in config.xml because fetchpop was removed in 2.3.

    
    Step 2.2 : Move mailet and matcher packages config
      
      Move <mailetpackages> and <matcherpackages> outside of the <spoolmanager> block.

      
    Step 2.3 : Add necessary mailets
      
      Add the <mailet match="All" class="PostmasterAlias"/> as the first mailet of the "root" processor.
      This was hardcoded in 2.2.0 and previous. Now we made it configurable.

      
    Step 2.4 : Move the spoolrepository config
    
      Move the spoolrepository out of the mailstore. Its also necessary to change the config syntax. For example :
      
      <spoolRepository>
         <repository destinationURL="db://maildb/spool/spool" type="SPOOL"/>
      </spoolRepository>

      Must converted to
      <spoolrepository destinationURL="db://maildb/spool/spool" type="SPOOL"/>

 
    Step 2.5 : Move the objectstore
      
      Move the objectstore config into the mailstore config.
      
    Step 2.6 : Add SSL to server-sockets
      
      To be able to use SSL you need to add this SSL config to the server-sockets block:
      
         <!--
         <factory name="ssl" class="org.apache.avalon.cornerstone.blocks.sockets.TLSServerSocketFactory">
            <ssl-factory>
               <keystore>
                  <file>conf/keystore</file>
                  <password><PASSWORD></password>
                  <key-password>keysecret</key-password>
                  <type>JKS</type>
                  <protocol>TLS</protocol>
                  <algorithm>SunX509</algorithm>
                  <authenticate-client>false</authenticate-client>
               </keystore>
            </ssl-factory>
         </factory>
         -->
    
    
  Step 3: Modify custom mailets if necessary
    Please note the following things that were changed. So maybe it's necessary for you to 
    change some stuff in your mailets.
      
{'fraction_non_alphanumeric': 0.12958758986000757, 'fraction_numerical': 0.009837306091562617, 'mean_word_length': 2.1658682634730537, 'pattern_counts': {'":': 0, '<': 62, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1501341', 'n_tokens_mistral': 1441, 'n_tokens_neox': 1329, 'n_words': 483}