> When Andrei did his tests, he commented out the sendMail line 
> in SMTPHandler, so that he could isolate the Handler's issues 
> from the rest of James.  That is probably a good idea.

I wrote a NullSpool some time ago for this kind of testing without
needing to change the code and also so that I can use James as an SMTP
sink.  I've attached it here in case anyone else wants to use it.  Note
that it currently resides in package com.postx.james.store, but this is
trivial to change.  In order to configure James to use NullSpool, I
simply replace this:

        <repository
class="org.apache.james.mailrepository.AvalonSpoolRepository">

With this:
 
        <repository class="com.postx.james.store.NullSpool">

In the <mailstore> <repositories> ... section of config.xml.

Note: the one time I tried to use James as an SMTP sink for James - it
didn't work! I got some exception which I never had time to track down.

Regards
Steve

Attachment: NullSpool.java
Description: NullSpool.java

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

Reply via email to