> > As part of my IMAP work, I've developed a simple "protocol testing
> > framework" (as JUnit tests), which allows tests to be defined as
> > text files
> > of the format:
> > C: <client-request>
> > S: <expected-server-response>
> > with a few macros such as ${ignore} and ${rfcDate} to handle variable
> > protocol elements.
>
> Sounds good, could I hack them for smtp & pop?

Absolutely. I've already done a simple smtp test. Here's a sample:
(I'm hoping to use scripting (Rhino) or something instead of macros, but
haven't got there yet.)
----------------------------------------------------------------------------
--
// Comment line - ignored.
// The ${ignore} macro accepts any single word element.
S: 220 ${ignore} SMTP Server (JAMES SMTP Server 2.0a2) ready ${rfcDate}
C: HELO localhost
S: 250 ${ignore} Hello localhost (127.0.0.1 [127.0.0.1])
// The ${from-address} and ${to-address} macros are NYI, but you get the
idea.
C: MAIL FROM: <${from-address}>
S: 250 Sender <${from-address}> OK
C: RCPT TO: <${to-address}>
S: 250 Recipient <${to-address}> OK
C: DATA
S: 354 Ok Send data ending with <CRLF>.<CRLF>
C: test
C: .
S: 250 Message received
C: QUIT
S: 221 ${ignore} Service closing transmission channel
----------------------------------------------------------------------------
------

As I said, I'll get this committed soon, so you can start playing with it.

>
> I like the installer idea, can we detect the end of the initial un-packing
> of the app?

Hmmm, good point - you'd need to do the override after initial startup. Not
sure about that. An installer would be very cool though. (This is surely
something that would be beneficial to Phoenix apps in general.)

ciao
Daz


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

Reply via email to