Skip to content

EntrepotJulienDurand/greenmail

 
 

Repository files navigation

GreenMail

GreenMail is an open source, intuitive and easy-to-use test suite of email servers for testing purposes. Supports SMTP, POP3, IMAP with SSL socket support. GreenMail also provides a JBoss GreenMail Service. GreenMail is the fist and only library that offers a test framework for both receiving and retrieving emails from Java.

Go to the project site for details:

The GreenMail project welcomes any contribution, so go ahead and fork/open a pull request! See the guidelines below.

Note: GreenMail recently moved to Github and was previously hosted on SF.

Development Build status

  • Build GreenMail from source

    mvn clean install

    Make sure you got Maven 3.0.5+ or higher.

  • Build the Maven site (and the optional example report)

    mvn site -Psite

  • Build and deploy a release

    For a tagged release and deployment to Sonatype OpenSource Repository Hosting and later syncing to Maven Central, do

    mvn clean deploy -Prelease,release-ossrh

  • Build and deploy a snapshot

    For a Maven Snapshot deployment to Sonatype, do

    mvn clean deploy -Prelease-ossrh

Contribution guidelines

Code formatter

Please set your code formatter to use 4 spaces for indentation of Java files (not tabs) and to two spaces for xml files (like the pom.xml)

Bill of Materials

We have the pom.xml in the root where we set the versions of all dependencies to keep them consistent among subprojects. Please do not add any version tags into the child pom.xml files.

Starting your pull request

The best strategy for opening a pull request after a fork is to add the this repository ( https://github.com/greenmail-mail-test/greenmail ) as the "upstream" to your .git/config such as:

[remote "upstream"]
url = https://github.com/greenmail-mail-test/greenmail.git
fetch = +refs/heads/*:refs/remotes/upstream/*

Then you fetch "upstream" and create a new branch at upstream/master (name it issue-XXX or something like that). Now you can add commits on that branch and then create a pull request for that branch (after pushing it to your github). That way commits are isolated for one feature.

Tests for your pull request

Please also create a test for every feature you add. We know that currently there aren't many tests but in the medium term we want to increase test coverage.

Misc

Many thanks to JProfiler and Jetbrains for supporting this project with free OSS licenses

About

Official master for the Greenmail project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 92.6%
  • HTML 6.1%
  • CSS 1.2%
  • JavaScript 0.1%