[EMAIL PROTECTED] wrote:
Yes it works!

Thanks!

PS: Do you know if this code will be included in the next version of JAMES?

Unfortunately we are in the last RC phase of our current release and it is unlikely we'll include this in 2.3.0.

2.3.1 or 2.4.0 will include this fix for sure.

So unlikely but not impossible: we have a team and we'll probably vote soon about the final release and this vote will include also the decisions about pending patches for open bugs.

Stefano

-----Message d'origine-----
De : Stefano Bagnara (JIRA) [mailto:[EMAIL PROTECTED] Envoyé : mercredi 4 octobre 2006 17:55
À : [EMAIL PROTECTED]
Objet : [jira] Commented: (JAMES-649) error "OutOfMemoryError: JAVA HEAP SPACE" 
in connections log file when doing a POP TOP for 4000 messages

[ http://issues.apache.org/jira/browse/JAMES-649?page=comments#action_12439873 ] Stefano Bagnara commented on JAMES-649:
---------------------------------------

Are you able to change code and try again?
I would like to know what is the result if you add this method to 
MimeMessageWrapper:
----
    /**
     * @see javax.mail.internet.MimeMessage#getRawInputStream()
     */
    public InputStream getRawInputStream() throws MessagingException {
        if (!messageParsed && !isModified() && source != null) {
            InputStream is;
            try {
                is = source.getInputStream();
                // skip the headers.
                new MailHeaders(is);
                return is;
            } catch (IOException e) {
                throw new MessagingException("Unable to read the stream: " + 
e.getMessage(), e);
            }
        } else return super.getRawInputStream();
    }
------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to