Hi,

James suddenly crash when I receive > 30MB attachment. I didn't check the
threshold of message size that causes this. I just happened to send 34 MB
attachment through Thunderbird to James. The problem is caused by my mailet
which tries to get the flag:


in my my mailet:

                message = mail.getMessage();

.....


                // FLAGS
---> (exception when calling this:)              Flags flags =
message.getFlags();


The exception is caught in org.apache.james.transport.JamesSpoolManager

line 233:
            } catch (Throwable e) {
                // This is a strange error situation that shouldn't
ordinarily
                // happen
                StringBuffer exceptionBuffer =
                    new StringBuffer(64)
                            .append("Exception in processor <")
                            .append(processorName)
                            .append(">");
                getLogger().error(exceptionBuffer.toString(), e);
                if (processorName.equals(Mail.ERROR)) {
                    // We got an error on the error processor...
                    // kill the message
                    mail.setState(Mail.GHOST);
                    mail.setErrorMessage(e.getMessage());


Has anyone experienced before?

Any limit on message size?

Regards,
Edward

Reply via email to