on 01-27-2006 8:57 AM
Hi!
I' m facing a problem with accessing the message-body of a .eml-file which I' m reading as a FileInputStream:
Message message = new MimeMessage(null, new FileInputStream("email.eml"));
I can perfectly loop over the Header-Enumeration read with
message.getAllHeaders()
but if I' m trying to access the Messages body via
Object o = message.getContent()
the returned Object is neither of type Multipart nor Part, but an instance of com.sun.mail.util.QPDecoderStream.
The mail was digitally signed (Content-Type "smime.p7m"), so that' s probably the reason this behaviour.
Could anybody tell me how I get access to the Mail-Body and -Attachments (Multipart Mime) and - if possible - how I can transform the Message into an SMime-type which I then could extract the Signature from.
Regards,
Thomas
solved on my own.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.