greenmail-developers Mailing List for GreenMail
Brought to you by:
marcel_may,
waelc
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(2) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: Wael C. <wa...@us...> - 2007-12-19 23:23:45
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <pre><b>Notes:</b> This release contains minor changes to GreenMail core, most notable the introduction of slf4j for logging. New in this release is a JBoss service for GreenMail. The service runs GreenMail as a lightweight mail server sandbox, nicely suited for developers. Check out the project page <a class="moz-txt-link-freetext" href="http://www.icegreen.com/greenmail">http://www.icegreen.com/greenmail</a> for the latest documentation! Note about the files: - greenmail-1.3-bundle.jar : mvn upload bundle - greenmail-1.3.jar : contains all greenmail core classes - greenmail-1.3-src.zip : contains sources, javadoc, required libs, docs - greenmail-1.3.zip : like above, but no sources - greenmail-jboss-service-1.3.sar : deployable JBoss service archive <hr noshade="noshade"> <b>Changes:</b> * Added logging via slf4j, replacing System.out.println * Minor improvements: - c.i.g.AbstractServer exposes ServerSetup - c.i.g.util.GreenMailUtil exposes sendTextEmail(...) * New JBoss service wrapper (see the project page) <b><b>Changes:</b></b> Marcel May added the JBoss service and contributed the logging changes. Danke Schon! </pre> </body> </html> |
From: Marcel M. <mar...@co...> - 2007-02-23 09:54:55
|
Hi! I'll check with the spring-modules project about adding the greenmail spring integration to spring-modules. As soon as greenmail 1.2 is released I will try to get greenmail added to the www.ibiblio.org/maven2 repository. Cheers, Marcel Wael Chatila wrote: > resending to dev list > > -W > > Marcel May wrote: >> Hi Wael! >> >> How's the 1.2 release going :-) >> >> I was wondering about a spring integration for greenmail, s.th. like >> >> <!-- >> Test mail server. >> --> >> <bean id="greenMailBean" class="com.consol.cmas.esb.test.GreenMailBean"> >> <property name="autostart" value="true"/> >> <property name="smtpProtocoll" value="true"/> >> <property name="pop3Protocoll" value="true"/> >> <property name="users"> >> <list> >> <value>to:password@localhost</value> >> <value>from:password@localhost</value> >> </list> >> </property> >> </bean> >> >> I attached the GreenMailBean. >> Would you rather leave this out/add it to eg 'contribution' or >> 'integration' subproject? >> Maybe this would be a nice extension for the spring-modules project. >> >> Cheers, >> Marcel >> >> >> ------------------------------------------------------------------------ >> >> import java.util.ArrayList; >> import java.util.List; >> >> import com.icegreen.greenmail.util.GreenMail; >> import com.icegreen.greenmail.util.ServerSetup; >> import org.apache.commons.logging.Log; >> import org.apache.commons.logging.LogFactory; >> import org.springframework.beans.factory.DisposableBean; >> import org.springframework.beans.factory.InitializingBean; >> >> /** >> * Spring bean for GreenMail server. >> * <p/> >> * By default, SMTP and POP3 services are activated. >> * >> * @Author mm >> */ >> public class GreenMailBean implements InitializingBean, DisposableBean { >> /** >> * New logger. >> */ >> static final Log log = LogFactory.getLog(GreenMailBean.class); >> >> /** >> * The mail server. >> */ >> private GreenMail mGreenMail; >> /** >> * Automatically start the servers [TRUE]. >> */ >> private boolean mAutostart = true; >> /** >> * SMTP server >> */ >> private boolean mSmtpProtocoll = true; >> /** >> * SMTPS server >> */ >> private boolean mSmtpsProtocoll = false; >> /** >> * POP3 server >> */ >> private boolean mPop3Protocoll = true; >> /** >> * POP3S server >> */ >> private boolean mPop3sProtocoll = false; >> /** >> * IMAP server. >> */ >> private boolean mImapProtocoll = false; >> /** >> * IMAPS server. >> */ >> private boolean mImapsProtocoll = false; >> /** >> * Users. >> */ >> private List mUsers; >> /** >> * Port offset (default is 3000) >> */ >> private int mPortOffset = 3000; >> /** >> * Hostname. Default is null (= localhost). >> */ >> private String mHostname; >> >> /** >> * Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied >> * BeanFactoryAware and ApplicationContextAware). <p>This method allows the bean instance to >> * perform initialization only possible when all bean properties have been set and to throw an >> * exception in the event of misconfiguration. >> * >> * @throws Exception in the event of misconfiguration (such as failure to set an essential >> * property) or if initialization fails. >> */ >> public void afterPropertiesSet() throws Exception { >> mGreenMail = new GreenMail(createServerSetup()); >> if (null != mUsers) { >> for (int i = 0; i < mUsers.size(); i++) { >> String user = (String) mUsers.get(i); >> int posColon = user.indexOf(':'); >> int posAt = user.indexOf('@'); >> String login = user.substring(0, posColon); >> String pwd = user.substring(posColon + 1, posAt); >> String domain = user.substring(posAt + 1); >> if (log.isDebugEnabled()) { >> log.debug("Adding user " + login + ':' + pwd + '@' + domain); >> } >> mGreenMail.setUser(login + '@' + domain, login, pwd); >> } >> } >> if (mAutostart) { >> mGreenMail.start(); >> } >> } >> >> /** >> * Creates the server setup, depending on the protocoll flags. >> * >> * @return the configured server setups. >> */ >> private ServerSetup[] createServerSetup() { >> List setups = new ArrayList(); >> if (mSmtpProtocoll) { >> setups.add(createTestServerSetup(ServerSetup.SMTP)); >> } >> if (mSmtpsProtocoll) { >> setups.add(createTestServerSetup(ServerSetup.SMTPS)); >> } >> if (mPop3Protocoll) { >> setups.add(createTestServerSetup(ServerSetup.POP3)); >> } >> if (mPop3sProtocoll) { >> setups.add(createTestServerSetup(ServerSetup.POP3S)); >> } >> if (mImapProtocoll) { >> setups.add(createTestServerSetup(ServerSetup.IMAP)); >> } >> if (mImapsProtocoll) { >> setups.add(createTestServerSetup(ServerSetup.IMAPS)); >> } >> return (ServerSetup[]) setups.toArray(new ServerSetup[0]); >> } >> >> /** >> * Creates a test server setup with configured offset. >> * >> * @param theSetup the server setup. >> * @return the test server setup. >> */ >> private ServerSetup createTestServerSetup(final ServerSetup theSetup) { >> return new ServerSetup(mPortOffset + theSetup.getPort(), >> mHostname, >> theSetup.getProtocol()); >> } >> >> /** >> * Invoked by a BeanFactory on destruction of a singleton. >> * >> * @throws Exception in case of shutdown errors. Exceptions will get logged but not rethrown to >> * allow other beans to release their resources too. >> */ >> public void destroy() throws Exception { >> mGreenMail.stop(); >> } >> >> >> /** >> * Sets the autostart flag. >> * >> * @param theAutostart the flag. >> */ >> public void setAutostart(final boolean theAutostart) { >> mAutostart = theAutostart; >> } >> >> >> /** >> * Setter for property 'smtpProtocoll'. >> * >> * @param theSmtpProtocoll Value to set for property 'smtpProtocoll'. >> */ >> public void setSmtpProtocoll(final boolean theSmtpProtocoll) { >> mSmtpProtocoll = theSmtpProtocoll; >> } >> >> /** >> * Setter for property 'smtpsProtocoll'. >> * >> * @param theSmtpsProtocoll Value to set for property 'smtpsProtocoll'. >> */ >> public void setSmtpsProtocoll(final boolean theSmtpsProtocoll) { >> mSmtpsProtocoll = theSmtpsProtocoll; >> } >> >> /** >> * Setter for property 'pop3Protocoll'. >> * >> * @param thePop3Protocoll Value to set for property 'pop3Protocoll'. >> */ >> public void setPop3Protocoll(final boolean thePop3Protocoll) { >> mPop3Protocoll = thePop3Protocoll; >> } >> >> /** >> * Setter for property 'pop3sProtocoll'. >> * >> * @param thePop3sProtocoll Value to set for property 'pop3sProtocoll'. >> */ >> public void setPop3sProtocoll(final boolean thePop3sProtocoll) { >> mPop3sProtocoll = thePop3sProtocoll; >> } >> >> /** >> * Setter for property 'imapProtocoll'. >> * >> * @param theImapProtocoll Value to set for property 'imapProtocoll'. >> */ >> public void setImapProtocoll(final boolean theImapProtocoll) { >> mImapProtocoll = theImapProtocoll; >> } >> >> /** >> * Setter for property 'imapsProtocoll'. >> * >> * @param theImapsProtocoll Value to set for property 'imapsProtocoll'. >> */ >> public void setImapsProtocoll(final boolean theImapsProtocoll) { >> mImapsProtocoll = theImapsProtocoll; >> } >> >> >> /** >> * Setter for property 'users'. >> * >> * @param theUsers Value to set for property 'users'. >> */ >> public void setUsers(final List theUsers) { >> mUsers = theUsers; >> } >> } >> > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Greenmail-developers mailing list > Gre...@li... > https://lists.sourceforge.net/lists/listinfo/greenmail-developers > -- Marcel May ConSol* Software GmbH Franziskanerstr. 38 81669 München Tel: +49 (0)89-45841-155 Fax: +49-(0)89-45841-111 mar...@co... http://www.consol.de |
From: Wael C. <ch...@ds...> - 2007-02-23 09:25:49
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> resending to dev list<br> <br> -W<br> <br> Marcel May wrote: <blockquote cite="mid...@co..." type="cite"> <pre wrap="">Hi Wael! How's the 1.2 release going :-) I was wondering about a spring integration for greenmail, s.th. like <!-- Test mail server. --> <bean id="greenMailBean" class="com.consol.cmas.esb.test.GreenMailBean"> <property name="autostart" value="true"/> <property name="smtpProtocoll" value="true"/> <property name="pop3Protocoll" value="true"/> <property name="users"> <list> <value>to:password@localhost</value> <value>from:password@localhost</value> </list> </property> </bean> I attached the GreenMailBean. Would you rather leave this out/add it to eg 'contribution' or 'integration' subproject? Maybe this would be a nice extension for the spring-modules project. Cheers, Marcel </pre> <pre wrap=""> <hr size="4" width="90%"> import java.util.ArrayList; import java.util.List; import com.icegreen.greenmail.util.GreenMail; import com.icegreen.greenmail.util.ServerSetup; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.InitializingBean; /** * Spring bean for GreenMail server. * <p/> * By default, SMTP and POP3 services are activated. * * @Author mm */ public class GreenMailBean implements InitializingBean, DisposableBean { /** * New logger. */ static final Log log = LogFactory.getLog(GreenMailBean.class); /** * The mail server. */ private GreenMail mGreenMail; /** * Automatically start the servers [TRUE]. */ private boolean mAutostart = true; /** * SMTP server */ private boolean mSmtpProtocoll = true; /** * SMTPS server */ private boolean mSmtpsProtocoll = false; /** * POP3 server */ private boolean mPop3Protocoll = true; /** * POP3S server */ private boolean mPop3sProtocoll = false; /** * IMAP server. */ private boolean mImapProtocoll = false; /** * IMAPS server. */ private boolean mImapsProtocoll = false; /** * Users. */ private List mUsers; /** * Port offset (default is 3000) */ private int mPortOffset = 3000; /** * Hostname. Default is null (= localhost). */ private String mHostname; /** * Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied * BeanFactoryAware and ApplicationContextAware). <p>This method allows the bean instance to * perform initialization only possible when all bean properties have been set and to throw an * exception in the event of misconfiguration. * * @throws Exception in the event of misconfiguration (such as failure to set an essential * property) or if initialization fails. */ public void afterPropertiesSet() throws Exception { mGreenMail = new GreenMail(createServerSetup()); if (null != mUsers) { for (int i = 0; i < mUsers.size(); i++) { String user = (String) mUsers.get(i); int posColon = user.indexOf(':'); int posAt = user.indexOf('@'); String login = user.substring(0, posColon); String pwd = user.substring(posColon + 1, posAt); String domain = user.substring(posAt + 1); if (log.isDebugEnabled()) { log.debug("Adding user " + login + ':' + pwd + '@' + domain); } mGreenMail.setUser(login + '@' + domain, login, pwd); } } if (mAutostart) { mGreenMail.start(); } } /** * Creates the server setup, depending on the protocoll flags. * * @return the configured server setups. */ private ServerSetup[] createServerSetup() { List setups = new ArrayList(); if (mSmtpProtocoll) { setups.add(createTestServerSetup(ServerSetup.SMTP)); } if (mSmtpsProtocoll) { setups.add(createTestServerSetup(ServerSetup.SMTPS)); } if (mPop3Protocoll) { setups.add(createTestServerSetup(ServerSetup.POP3)); } if (mPop3sProtocoll) { setups.add(createTestServerSetup(ServerSetup.POP3S)); } if (mImapProtocoll) { setups.add(createTestServerSetup(ServerSetup.IMAP)); } if (mImapsProtocoll) { setups.add(createTestServerSetup(ServerSetup.IMAPS)); } return (ServerSetup[]) setups.toArray(new ServerSetup[0]); } /** * Creates a test server setup with configured offset. * * @param theSetup the server setup. * @return the test server setup. */ private ServerSetup createTestServerSetup(final ServerSetup theSetup) { return new ServerSetup(mPortOffset + theSetup.getPort(), mHostname, theSetup.getProtocol()); } /** * Invoked by a BeanFactory on destruction of a singleton. * * @throws Exception in case of shutdown errors. Exceptions will get logged but not rethrown to * allow other beans to release their resources too. */ public void destroy() throws Exception { mGreenMail.stop(); } /** * Sets the autostart flag. * * @param theAutostart the flag. */ public void setAutostart(final boolean theAutostart) { mAutostart = theAutostart; } /** * Setter for property 'smtpProtocoll'. * * @param theSmtpProtocoll Value to set for property 'smtpProtocoll'. */ public void setSmtpProtocoll(final boolean theSmtpProtocoll) { mSmtpProtocoll = theSmtpProtocoll; } /** * Setter for property 'smtpsProtocoll'. * * @param theSmtpsProtocoll Value to set for property 'smtpsProtocoll'. */ public void setSmtpsProtocoll(final boolean theSmtpsProtocoll) { mSmtpsProtocoll = theSmtpsProtocoll; } /** * Setter for property 'pop3Protocoll'. * * @param thePop3Protocoll Value to set for property 'pop3Protocoll'. */ public void setPop3Protocoll(final boolean thePop3Protocoll) { mPop3Protocoll = thePop3Protocoll; } /** * Setter for property 'pop3sProtocoll'. * * @param thePop3sProtocoll Value to set for property 'pop3sProtocoll'. */ public void setPop3sProtocoll(final boolean thePop3sProtocoll) { mPop3sProtocoll = thePop3sProtocoll; } /** * Setter for property 'imapProtocoll'. * * @param theImapProtocoll Value to set for property 'imapProtocoll'. */ public void setImapProtocoll(final boolean theImapProtocoll) { mImapProtocoll = theImapProtocoll; } /** * Setter for property 'imapsProtocoll'. * * @param theImapsProtocoll Value to set for property 'imapsProtocoll'. */ public void setImapsProtocoll(final boolean theImapsProtocoll) { mImapsProtocoll = theImapsProtocoll; } /** * Setter for property 'users'. * * @param theUsers Value to set for property 'users'. */ public void setUsers(final List theUsers) { mUsers = theUsers; } } </pre> </blockquote> </body> </html> |
From: Marcel M. <mar...@co...> - 2007-02-23 08:51:42
|
Hi Wael! How's the 1.2 release going :-) I was wondering about a spring integration for greenmail, s.th. like <!-- Test mail server. --> <bean id="greenMailBean" class="com.consol.cmas.esb.test.GreenMailBean"> <property name="autostart" value="true"/> <property name="smtpProtocoll" value="true"/> <property name="pop3Protocoll" value="true"/> <property name="users"> <list> <value>to:password@localhost</value> <value>from:password@localhost</value> </list> </property> </bean> I attached the GreenMailBean. Would you rather leave this out/add it to eg 'contribution' or 'integration' subproject? Maybe this would be a nice extension for the spring-modules project. Cheers, Marcel |
From: Wael C. <ch...@ds...> - 2007-01-12 09:53:07
|
Hi Marcel There are a bunch of new changes * greenmail is now officially multithreaded * fixed ssl keystore issue with non sun jdk's * changed name of "Servers.java" to "GreenMail.java" (changes are backwards compatible). I did this change since ive felt some users dont get it right away. * improved documentation and examples. Have you seen http://subethasmtp.tigris.org ? Seems like a more mature smtp server than greenmail's current smtp implementation. What is your take on greenmail using that instead? best Wael |
From: Wael C. <ch...@ds...> - 2007-01-11 11:09:25
|
Hi Marcel, New stuff in svn * javamail-1.4 * rset command * some other tweaks here and there planned work get greenmail running with ibm's jdk best -W |
From: Marcel M. <mar...@co...> - 2006-12-29 18:59:30
|
Hi Wael! Great, you got the branching working. That permission error really confused me. I was wandering if we should skip 1.1.1 and go directly for 1.2, as we're having new features, too (and not only bugfixes). Saves us merging, too - as we'd have to work on the 1.1 branch for 1.1.1, right? Changes (from my side, so far, and not yet committed): - RSET for POP3 - POM fixes and 'stable' for repository upload - Update to JavaMail 1.4 dependency Version 1.4 is licensed under CDDL and can therefore be distributed (and, more important: downloaded from a repository like ibiblio). Though everything should still work with the old verison. What's your vote on this one? Planned: a litlle maven2 howto (building and integrating) Happy New Year, Marcel |
From: Marcel M. (SourfeForge) <mar...@us...> - 2006-12-29 18:57:43
|
Hi Wael! Great, you got the branching working. That permission error really confused me. I was wandering if we should skip 1.1.1 and go directly for 1.2, as we're having new features, too (and not only bugfixes). Saves us merging, too - as we'd have to work on the 1.1 branch for 1.1.1, right? Changes (from my side, so far, and not yet committed): - RSET for POP3 - POM fixes and 'stable' for repository upload - Update to JavaMail 1.4 dependency Version 1.4 is licensed under CDDL and can therefore be distributed (and, more important: downloaded from a repository like ibiblio). Though everything should still work with the old verison. What's your vote on this one? Planned: a litlle maven2 howto (building and integrating) Happy New Year, Marcel |