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/03/31 19:32:07 UTC

svn commit: r929627 - /james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/mail/model/JPAHeader.java

Author: norman
Date: Wed Mar 31 17:32:07 2010
New Revision: 929627

URL: http://svn.apache.org/viewvc?rev=929627&view=rev
Log:
Adjust header field and value length (IMAP-115)

Modified:
    james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/mail/model/JPAHeader.java

Modified: james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/mail/model/JPAHeader.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/mail/model/JPAHeader.java?rev=929627&r1=929626&r2=929627&view=diff
==============================================================================
--- james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/mail/model/JPAHeader.java (original)
+++ james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/mail/model/JPAHeader.java Wed Mar 31 17:32:07 2010
@@ -38,12 +38,13 @@ public class JPAHeader extends AbstractC
     @Basic(optional=false) private int lineNumber;
 
     /** The value for the field field */
+    /** Use a max of 1024 which could happen on very freaky header field names*/
+    @Column(length=1024)
     @Basic(optional=false) private String field;
 
     /** The value for the value field */
-    /** We use a 1024 as length because the max line length is 998 and 1024 is not so strict. The limit usual count for the whole line but 
-     ** giving a few extra chars can't harm to much. See RFC2822 2.1.1 **/
-    @Column(length=1024)
+    /** We use 10240 as max which is mostly overkill for most emails but better waste a bit of space then loose headers**/
+    @Column(length=10240)
     @Basic(optional=false) private String value;
     
     /**



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