You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2010/10/09 11:37:41 UTC

svn commit: r1006122 - in /james/server/trunk: pom.xml spring-deployment/pom.xml

Author: norman
Date: Sat Oct  9 09:37:40 2010
New Revision: 1006122

URL: http://svn.apache.org/viewvc?rev=1006122&view=rev
Log:
Add javmail system properties to startup scripts to let javamail handle bad formated messages more friendly (JAMES-1060)

Modified:
    james/server/trunk/pom.xml
    james/server/trunk/spring-deployment/pom.xml

Modified: james/server/trunk/pom.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/pom.xml?rev=1006122&r1=1006121&r2=1006122&view=diff
==============================================================================
--- james/server/trunk/pom.xml (original)
+++ james/server/trunk/pom.xml Sat Oct  9 09:37:40 2010
@@ -1147,7 +1147,20 @@
     <jsieve.version>0.4</jsieve.version>
     <jackrabbit.version>2.1.0</jackrabbit.version>
     <commons.logging.version>1.1</commons.logging.version>
-
+    <!-- For more details see -->
+    <!-- http://java.sun.com/products/javamail/javadocs/javax/mail/internet/package-summary.html -->
+    <javamail.system-properties>
+      -Dmail.mime.multipart.ignoremissingendboundary=true 
+      -Dmail.mime.multipart.ignoremissingboundaryparameter=true 
+      -Dmail.mime.ignoreunknownencoding=true 
+      -Dmail.mime.uudecode.ignoreerrors=true 
+      -Dmail.mime.uudecode.ignoremissingbeginend=true 
+      -Dmail.mime.multipart.allowempty=true 
+      -Dmail.mime.base64.ignoreerrors=true 
+      -Dmail.mime.encodeparameters=true 
+      -Dmail.mime.decodeparameters=true 
+      -Dmail.mime.address.strict=false
+    </javamail.system-properties>
   </properties>
 
 </project>

Modified: james/server/trunk/spring-deployment/pom.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/pom.xml?rev=1006122&r1=1006121&r2=1006122&view=diff
==============================================================================
--- james/server/trunk/spring-deployment/pom.xml (original)
+++ james/server/trunk/spring-deployment/pom.xml Sat Oct  9 09:37:40 2010
@@ -52,7 +52,7 @@
           <includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>
           <environmentSetupFileName>setenv</environmentSetupFileName>
           <!--  set some sane defaults for memory -->
-          <extraJvmArguments>-Xms128m -Xmx512m -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader</extraJvmArguments>
+          <extraJvmArguments>-Xms128m -Xmx512m -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader ${javamail.system-properties}</extraJvmArguments>
           <!-- Generate bin scripts for windows and unix per default -->
           <platforms>
             <platform>windows</platform>
@@ -136,6 +136,10 @@
                       <name>wrapper.java.additional.1</name>
                       <value>-Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader</value>
                     </property>
+                    <property>
+                      <name>wrapper.java.additional.2</name>
+                      <value>${javamail.system-properties}</value>
+                    </property>
                   </configuration>
                 </generatorConfiguration>
               </generatorConfigurations>



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org