Hi, I have made some changes to jboss-mail. I have attach a zip file containing the patch and a CHANGELOG to the patches wiki page:
http://www.jboss.org/wiki/Wiki.jsp?page=MailServicesPatches The changelog: - Use variable to locate JBOSS within classpath setting for eclipse project - Added heap protection to smtp CmdDATA. Requires additional property of threshold to be added to the protocol. Default is 5000000 bytes. Passes the mimimum of the heap available and max message size to the SizeLimitedInputStream. Throws a MessageSizeException if it is exceeded and will return a 552 error to the client. MessageSizeException had to be threaded through a number of the Mail construction methods. - White space changes. Modified Mail.java, MailHeadersImpl.java, CmdDATA.java updated to JBoss code style as per: http://sourceforge.net/docman/display_doc.php?docid=19920&group_id=22866 - Fix for message body being read in as a header, now is read properly into the body of the Mail object. See: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=58218 - Handle large messages more effiecently. Previously when loading the body of the message the input is read into a list of arrays then copied into one large array. I have changed this to leave the body as a list of arrays and only copy the data from the body when required. When creating the message only slightly more memory than the length of the message is required during processing. I.e. to handle a 4MB message about 4.1MB is needed. Previously about 25MB was required to handle the same size messsage. - 2 JUnits tests have been added, one to test that 552 is return if message is too large (TestCMDData). Other to test that the body is stored correctly within the message (TestMail). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860294#3860294 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860294 ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
