You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Corey Scott <co...@gmail.com> on 2004/10/29 03:32:20 UTC

Re: DO NOT REPLY [Bug 31934] - [mail] No smtp.jar in dependencies list

We may also find that the mail.jar has an API for retrieving messages
from a mail server, may be can use this rather than adding a new jar?

What do you feel about saving the output of the tests to a file (mail
messages) only.  This way one could check the output without and
connection and without spamming yourself.

Thanks,
Corey

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: DO NOT REPLY [Bug 31934] - [mail] No smtp.jar in dependencies list

Posted by Mark Lowe <me...@gmail.com>.
Not sure how to display the messages in a client if out to the file.
In most cases it would be fine, but utimately would need to check on a
client anyway. I don't actually mind spamming myself, it seems a way
to testing beyond the scope of the unit tests..

My opinion on the smtp depenency is that its part of the mail api and
the core mail api and activation framework are required anyhow. But
then again I only really care because (again IMO) the only important
thing that as well as the unit tests being run there is a effective
means of checking the output with a client. Otherwise if someone
writes a bug report for some output issue they'd still be no way of
seeing what the problem is, and folk letting stuff through because it
passed unit tests that perhaps were'nt failing anyway.

Perhaps I'll think about a maven task that does this, and echos a "You
need so and so jar to run this task"..

Mark

On Fri, 29 Oct 2004 09:32:20 +0800, Corey Scott <co...@gmail.com> wrote:
> We may also find that the mail.jar has an API for retrieving messages
> from a mail server, may be can use this rather than adding a new jar?
> 
> What do you feel about saving the output of the tests to a file (mail
> messages) only.  This way one could check the output without and
> connection and without spamming yourself.
> 
> Thanks,
> Corey
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


RE: DO NOT REPLY [Bug 31934] - [mail] No smtp.jar in dependencies list

Posted by Eric Pugh <ep...@upstate.com>.
However, doesn't dumbster do that?  From the examples
(http://www.quintanasoft.com/dumbster/#Examples)

server.stop();

    assertTrue(server.getReceievedEmailSize() == 1);
    Iterator emailIter = server.getReceivedEmail();
    SmtpMessage email = (SmtpMessage)emailIter.next();
    assertTrue(email.getHeaderValue("Subject").equals("Test"));
    assertTrue(email.getBody().equals("Test Body"));

Couldn't we do it right there?   Do something like write out the content to
/target/emailout/

Eric

> -----Original Message-----
> From: Corey Scott [mailto:corey.scott@gmail.com]
> Sent: Friday, October 29, 2004 3:32 AM
> To: Jakarta Commons Developers List
> Subject: Re: DO NOT REPLY [Bug 31934] - [mail] No smtp.jar in
> dependencies list
>
>
> We may also find that the mail.jar has an API for retrieving messages
> from a mail server, may be can use this rather than adding a new jar?
>
> What do you feel about saving the output of the tests to a file (mail
> messages) only.  This way one could check the output without and
> connection and without spamming yourself.
>
> Thanks,
> Corey
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org