M
Martin Gregorie
When I create and store a mail message by constructing a MimeMessage from
an InputStream and writing it to an mbox file using the mstor provider
some or all of its content will be encoded as base64 if the message
contains the "Content-Transfer-Encoding: base64" header.
However, when the messages are read back into Message objects, using
JavaMail and the mstor provider, some base64 encoded parts of the content
cause an exception. The exception message says that the base64 encoding
length isn't a multiple of 4 bytes.
I've never seen this error when reading messages from mbox files created
by Postfix - only when the message has been written by JavaMail/mstor and
then read back by it.
I'm using JavaMail 1.4.1 and mstor 0.9.11 on a Linux (Fedora 8) system.
Has anybody else seen this problem and, if so, how did you get round it?
an InputStream and writing it to an mbox file using the mstor provider
some or all of its content will be encoded as base64 if the message
contains the "Content-Transfer-Encoding: base64" header.
However, when the messages are read back into Message objects, using
JavaMail and the mstor provider, some base64 encoded parts of the content
cause an exception. The exception message says that the base64 encoding
length isn't a multiple of 4 bytes.
I've never seen this error when reading messages from mbox files created
by Postfix - only when the message has been written by JavaMail/mstor and
then read back by it.
I'm using JavaMail 1.4.1 and mstor 0.9.11 on a Linux (Fedora 8) system.
Has anybody else seen this problem and, if so, how did you get round it?