I have tried the sample using the mailet and matcher API's..

here is the description of the sample i have tried....It is available
at-->http://www.ibm.com/developerworks/java/library/j-james2.html

   1. A user can send an e-mail to [EMAIL PROTECTED] to set his or her
account to unavailable mode. The message that had been sent to
[EMAIL PROTECTED] is stored for future use. If an unavailable message
is already stored for the user, it is overwritten with the new one. The user
should receive notification that all this has occurred.

   2. A user can send an e-mail to [EMAIL PROTECTED] to cancel any
unavailable messages. The message sent to [EMAIL PROTECTED] is discarded
and the stored unavailable message is removed. The user should receive
notification that the status has been changed to available.

   3. Whenever a user for whom an unavailable message has been stored
receives an e-mail, the sender should be sent a copy of the stored message,
indicating that the user is unavailable. The original incoming e-mail that
triggers this process should be handled normally.


the intended output is this :----

Clear INBOX for [EMAIL PROTECTED]

Clear INBOX for [EMAIL PROTECTED]

Clear INBOX for [EMAIL PROTECTED]

SENDING message from [EMAIL PROTECTED] to [EMAIL PROTECTED]

SENDING message from [EMAIL PROTECTED] to [EMAIL PROTECTED]

SENDING message from [EMAIL PROTECTED] to [EMAIL PROTECTED]

Show and Clear INBOX for [EMAIL PROTECTED]
    From: [EMAIL PROTECTED]
 Subject: Testing blue from green
 Content: This is a test message

    From: [EMAIL PROTECTED]
 Subject: Testing blue from red
 Content: This is a test message


SENDING message from [EMAIL PROTECTED] to [EMAIL PROTECTED]

Show and Clear INBOX for [EMAIL PROTECTED]
    From: [EMAIL PROTECTED]
 Subject: On Vacation
 Content: I am on vacation at the moment. I will answer your mail 
               as soon as I get back.


SENDING message from [EMAIL PROTECTED] to [EMAIL PROTECTED]

Show and Clear INBOX for [EMAIL PROTECTED]
    From: [EMAIL PROTECTED]
 Subject: You have been marked as AVAILABLE
 Content: Send a message to [EMAIL PROTECTED] to send the 
               message to users when you are unavailable.

    From: [EMAIL PROTECTED]
 Subject: Testing blue from green
 Content: This is a test message

    From: [EMAIL PROTECTED]
 Subject: You have been marked as UNAVAILABLE
 Content: Send a message to [EMAIL PROTECTED] to reset.


But i am getting this:----

Clear INBOX for [EMAIL PROTECTED]

Clear INBOX for [EMAIL PROTECTED]

Clear INBOX for [EMAIL PROTECTED]

SENDING message from [EMAIL PROTECTED] to [EMAIL PROTECTED]

SENDING message from [EMAIL PROTECTED] to [EMAIL PROTECTED]

SENDING message from [EMAIL PROTECTED] to [EMAIL PROTECTED]

Show and Clear INBOX for [EMAIL PROTECTED]
    From: [EMAIL PROTECTED]
 Subject: Testing blue from green
 Content: This is a test message

    From: [EMAIL PROTECTED]
 Subject: Testing blue from red
 Content: This is a test message


SENDING message from [EMAIL PROTECTED] to [EMAIL PROTECTED]

Show and Clear INBOX for [EMAIL PROTECTED]
    From: [EMAIL PROTECTED]
 Subject: On Vacation
 Content: I am on vacation at the moment. I will answer your mail 
               as soon as I get back.


SENDING message from [EMAIL PROTECTED] to [EMAIL PROTECTED]

Show and Clear INBOX for [EMAIL PROTECTED]
    From: [EMAIL PROTECTED]
 Subject: You have been marked as AVAILABLE
 Content: Send a message to [EMAIL PROTECTED] to send the 
               message to users when you are unavailable.

    From: [EMAIL PROTECTED]
 Subject: Testing blue from green
 Content: This is a test message

    From: [EMAIL PROTECTED]
 Subject: You have been marked as UNAVAILABLE
 Content: Send a message to [EMAIL PROTECTED] to reset.



so i need to find wats the mistake....

Anyone who have tried this plzz revert back.
Thanks in advance



-- 
View this message in context: 
http://www.nabble.com/Failing-to-get-the-intended-output...-tp15081587p15081587.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to