james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1158521 - in /james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store: MimeDescriptorImpl.java ResultUtils.java StoreMessageManager.java search/MessageSearcher.java streaming/PartContentBuilder.java
Date Wed, 17 Aug 2011 05:30:04 GMT
Author: norman
Date: Wed Aug 17 05:30:04 2011
New Revision: 1158521

URL: http://svn.apache.org/viewvc?rev=1158521&view=rev
Log:
Don't force a specifc header length. This should get done by the protocol (SMTP/IMAP etc)
not the mailbox impl

Modified:
    james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/MimeDescriptorImpl.java
    james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/ResultUtils.java
    james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java
    james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearcher.java
    james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/streaming/PartContentBuilder.java

Modified: james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/MimeDescriptorImpl.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/MimeDescriptorImpl.java?rev=1158521&r1=1158520&r2=1158521&view=diff
==============================================================================
--- james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/MimeDescriptorImpl.java
(original)
+++ james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/MimeDescriptorImpl.java
Wed Aug 17 05:30:04 2011
@@ -92,7 +92,8 @@ public class MimeDescriptorImpl implemen
         // See https://issues.apache.org/jira/browse/IMAP-132
         MimeConfig config = new MimeConfig();
         config.setMaxLineLen(-1);
-        
+        config.setMaxHeaderLen(-1);
+
         //
         final MimeTokenStream parser = new MimeTokenStream(config, new DefaultBodyDescriptorBuilder());
         

Modified: james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/ResultUtils.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/ResultUtils.java?rev=1158521&r1=1158520&r2=1158521&view=diff
==============================================================================
--- james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/ResultUtils.java
(original)
+++ james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/ResultUtils.java
Wed Aug 17 05:30:04 2011
@@ -64,6 +64,7 @@ public class ResultUtils {
         final List<MessageResult.Header> results = new ArrayList<MessageResult.Header>();
         MimeConfig config = new MimeConfig();
         config.setMaxLineLen(-1);
+        config.setMaxHeaderLen(-1);
         final MimeStreamParser parser = new MimeStreamParser(config);
         parser.setContentHandler(new AbstractContentHandler() {
             @Override

Modified: james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java?rev=1158521&r1=1158520&r2=1158521&view=diff
==============================================================================
--- james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java
(original)
+++ james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java
Wed Aug 17 05:30:04 2011
@@ -216,6 +216,8 @@ public class StoreMessageManager<Id> imp
             // https://issues.apache.org/jira/browse/IMAP-122
             MimeConfig config = new MimeConfig();
             config.setMaxLineLen(-1);
+            config.setMaxHeaderLen(-1);
+
             final MimeTokenStream parser = new MimeTokenStream(config, new DefaultBodyDescriptorBuilder());
            
             parser.setRecursionMode(RecursionMode.M_NO_RECURSE);

Modified: james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearcher.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearcher.java?rev=1158521&r1=1158520&r2=1158521&view=diff
==============================================================================
--- james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearcher.java
(original)
+++ james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearcher.java
Wed Aug 17 05:30:04 2011
@@ -157,6 +157,7 @@ public class MessageSearcher {
             boolean result = false;
             MimeConfig config = new MimeConfig();
             config.setMaxLineLen(-1);
+            config.setMaxHeaderLen(-1);
 
             MimeTokenStream parser = new MimeTokenStream(config);            parser.parse(input);
             while (!result && parser.next() != EntityState.T_END_OF_STREAM) {

Modified: james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/streaming/PartContentBuilder.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/streaming/PartContentBuilder.java?rev=1158521&r1=1158520&r2=1158521&view=diff
==============================================================================
--- james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/streaming/PartContentBuilder.java
(original)
+++ james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/streaming/PartContentBuilder.java
Wed Aug 17 05:30:04 2011
@@ -51,6 +51,7 @@ public class PartContentBuilder {
     public PartContentBuilder() {
         MimeConfig config = new MimeConfig();
         config.setMaxLineLen(-1);
+        config.setMaxHeaderLen(-1);
 
         parser = new MimeTokenStream(config);
     }



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


Mime
View raw message