Hi James users,
I am working with James for about 2 weeks now. I have downloaded the
latest james version.
I am trying to implement a mailet that is similar to the localDelivery
mailet which writes all the incoming local mails to a database.
I am running into this wierd problem where james seems to ignore any
reference to foreign classes in the mailet.
I have imported these classes in the mailet, I have also tried adding
the jar of these classes in the james.sar with the custom mailet that i
have written.
I know James is doing some kind of dynamic loading of the mailets and it
does not load the other classes I need for the mailet.
Nor does it throw any error or exception, it just gets stuck at the
method call and does not complain.
Here is an example:
import home.data.myInbox;
public class myMailet extends GenericMailet {
public void service(Mail mail) throws MessagingException {
System.out.println("In mailets ");
myInbox inbox = new myInbox();
System.out.println("out");
mail.setState(Mail.GHOST);
}
}
When james processes a mail:
It outputs: In mailets
and then gets stuck at the line: myInbox inbox = new myInbox();
Can anyone please let me know how would I make the mailet load myInbox;
Thanks,
Disha
--
Disha <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]