serge 01/12/05 14:13:15
Modified: src/java/org/apache/james/smtpserver SMTPHandler.java
Log:
Renamed getSize to getMessageSize on MailImpl level, and corrected implementation
bugs accordingly. Also added check for MimeMessageWrapper so it just gets the size
without loading the object unnecessarily.
Revision Changes Path
1.12 +4 -4
jakarta-james/src/java/org/apache/james/smtpserver/SMTPHandler.java
Index: SMTPHandler.java
===================================================================
RCS file:
/home/cvs/jakarta-james/src/java/org/apache/james/smtpserver/SMTPHandler.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- SMTPHandler.java 2001/11/29 18:17:33 1.11
+++ SMTPHandler.java 2001/12/05 22:13:15 1.12
@@ -44,8 +44,8 @@
* @author Matthew Pangaro <[EMAIL PROTECTED]>
* @author Danny Angus <[EMAIL PROTECTED]>
*
- * This is $Revision: 1.11 $
- * Committed on $Date: 2001/11/29 18:17:33 $ by: $Author: danny $
+ * This is $Revision: 1.12 $
+ * Committed on $Date: 2001/12/05 22:13:15 $ by: $Author: serge $
*/
public class SMTPHandler
extends BaseConnectionHandler
@@ -561,9 +561,9 @@
new SequenceInputStream(headersIn, msgIn));
// if the message size limit has been set, we'll
// call mail.getSize() to force the message to be
- // loaded. Need to do this to limit the size
+ // loaded. Need to do this to enforce the size limit
if (maxmessagesize > 0) {
- mail.getSize();
+ mail.getMessageSize();
}
mail.setRemoteHost((String)state.get(REMOTE_NAME));
mail.setRemoteAddr((String)state.get(REMOTE_IP));
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>