Simon,
I'm not exactly sure what you mean by "Plan Mail Text". Do you mean the
unparsed message body, or do you mean just a simple message that has no
attachments (like this one)? Do get the raw input stream, I believe you can
call getInputStream on the MimeMessage object. To get the text from a
simple e-mail message, I'm pretty sure you can just call getContent() and
cast this to a String.
As for processing, if you want the mailet to stop the message from
processing anymore, you set the state to GHOST. If you want to let the
message continue processing (like a logging mailet), you don't do anything.
If you want to send this message to another processor, you can set the state
to that, e.g., ERROR. (note that root and error are special processors that
a mailet server should always have, but you can create other processors for
more complex processing).
Serge Knystautas
Loki Technologies
http://www.lokitech.com/
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 14, 2000 5:45 AM
Subject: Accessing Plain Mail Text
Hi how can I access the Plain Mail Text (without recognizing Mime Parts)
from a Mailet. i couldn't find anything appropriate in javax.sun.mail?
And the second question how do i send the message i accesed by the Mailet
back in the Mailet processor after the entry of the Mailet (so it won't run
thru the Maillet again) do i just don't change se Message Status or do i
have to do something else?
Bye Simon
-------------------------------------------------------------------
This message has been posted from Mail2Web http://www.mail2web.com/
Web Hosting for $9.95 per month! Visit: http://www.yourhosting.com/
-------------------------------------------------------------------
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]