>�From: =?iso-8859-1?Q?Ra=FAl_Jim=E9nez?= <[EMAIL PROTECTED]>
>�To: [EMAIL PROTECTED]
>�Subject: RV: Problem getting the content from a message
>�Date: Tue Aug 22 00:44:46 EDT 2000
>
> Hello,
>
> I'm working in WINDOWS NT 4.0
>
> I'm trying to get the Message information with the James Mail Server from a
> Java Application.
> The Information from Header, from, ... runs ok but when I try to get the
> mail's content (using the MimeMessage's method getContent()) I receive the
> next Exception message:
>
> java.io.Exception:java.io.EOFException: EOF of socket
>
> Without change the code from my application, just changing the connection
> parameters to use SendMail of LINUX like mail server the method getContent()
> runs ok.
>
> Can you help me.
How exactly are you trying to create the message? If you are instantiating the
MimeMessage object from an application outside of JAMES, you will likely have some
problems. You might notice that JAMES stores the headers and message content in
separate files. I'm guessing that if you're using a separate app to do this, you've
passed the header file in, but not the message content file. What JAMES does is
create java.io.SequenceInputStream and pass an input stream to the header file and to
the message content file. Then when the message object is instantiated from the input
stream, it thinks it's coming from one file.
If that doesn't work, maybe you can send some code snippets?
Serge Knystautas
Loki Technologies
http://www.lokitech.com/
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]