james-server-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Maurer <norman.mau...@googlemail.com>
Subject Re: Test a mailet development
Date Mon, 15 Mar 2010 17:22:49 GMT
Hi Andre,

I think a good start would be to look at the source code of our unit
tests for mailets:

http://svn.apache.org/viewvc/james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/

Bye,
Norman

2010/3/15 Florent André <florent.andre-dev@4sengines.com>:
> Hi James addicts :) ,
>
> I would like to begin to code my first mailet, and I ask myself a question
> : How I can test if my mailet react (output) what I want when a mail is
> treated ?
>
> I imagine different solutions :
> 1) send a mail via telnet : not very easy and rapid
> 2) send a mail via my day to day webmail : I'm not totally crazy for now
> and I don't want to expose my "no-configuration" to all web. So I just have
> a local access to james
> 3) Use a local, predictable, reusable and configurable java jar for send
> mail to James.
>
> The 3) seem to me the more "clean" and usable.
>
> In order to create this test lib, I found some examples code on this :
> http://www.ibm.com/developerworks/java/library/j-james1.html
>
> What do you think about this way of doing ? There is a better practice in
> James or a very useful code in svn for this usecase ?
>
> Thanks,
> Have a gooooooood day
> ++
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Mime
View raw message