Tuesday, March 4, 2003 02:23 AM
I am new to javaMail and quite lost with its way of working.
I have a tool that creates SMIME stuff that needs to be put into MIME envelopes. In the same time I have to manage parsing of simple MIME messages.
My current problem is the following:
I have a BodyPart and I am testing if it is SMIME or not (with checks on the ContentType). If it is, then I want to retrieve the entire MIME message as a String or a byte. I mean, the whole text stuff with the headers and the -possibly- encoded64 content, or if you prefer the inputStream with which the BodyPart was created.
But I haven't found anything in BodyPart that returns such a thing (everything is about the content). There might be writeTo() but it needs an output stream that, if piped in a pipedinputstream, results in a dead lock...
Re: how to get the entire MIME message from a BodyPart?
Tuesday, March 4, 2003 06:53 AM