I am happy to be able to contribute (as small as it may be),
and I hope to do more in the immediate future.
I hate to bug you guys, you are being very helpful.
But I am getting another exception that does not make sense to me..
I print out the mail's content, then I get a 'no content exception'.
Here is the stack, then the code:
----------------------------------
C:\mailserver\bin>run

Phoenix 3.1a1-dev

James 2.0a2
Started POP3 Server plain:110
Started SMTP Server plain:25
Started NNTP Server plain:119
mail content:Hi. This is the James mail server at chupacabra.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

..address here...
Invalid Addresses;
  nested exception is:
        javax.mail.SendFailedException: 550 unknown user <..address here...>

The original message is attached.

exception! javax.mail.MessagingException: No content
Exception in processor <error>
javax.mail.MessagingException: No content
        at
javax.mail.internet.MimeMessage.getContentStream(MimeMessage.java:1181)
        at
org.apache.james.core.MimeMessageWrapper.getLineCount(MimeMessageWrapper.jav
a:385)
        at
org.apache.james.transport.mailets.NotifyPostmaster.service(NotifyPostmaster
.java:126)
        at
org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:168)
        at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
241)
        at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:208)
        at
org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Executabl
eRunnable.java:47)
        at
org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:8
0)
JVM exiting abnormally. Shutting down Phoenix.
Terminate batch job (Y/N)? y
----------------------------------

Here is the code in myRemoteDelivery.java starting at line 278 (of
RemoteDelivery.java):

----------------------------------

//            getMailetContext().bounce(mail, sout.toString());
   Vector recips = new Vector();
   recips.addElement(getMailetContext().getPostmaster());
   MimeMessage content = new MimeMessage(mail.getMessage());
   content.setText(sout.toString());
   try{System.out.println("mail content:"+(String)content.getContent());}
   catch(Exception e){}

getMailetContext().sendMail(getMailetContext().getPostmaster(),(Collection)r
ecips,content,"error");
----------------------------------

Ok, it seems that a successful
'(String)content.getContent()'
would mean that I would not receive
'exception! javax.mail.MessagingException: No content'
for the same object.  What is happening to my content that I demonstrated
having had?


Thank you for any help,
Jason



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

Reply via email to