Coder Social home page Coder Social logo

an1s9n / greenmail Goto Github PK

View Code? Open in Web Editor NEW

This project forked from greenmail-mail-test/greenmail

0.0 0.0 0.0 6.15 MB

Official master for the Greenmail project

Home Page: http://greenmail-mail-test.github.io/greenmail/

License: Apache License 2.0

Shell 0.02% Java 99.58% HTML 0.24% Dockerfile 0.16%

greenmail's Introduction

GreenMail

Build status Maven Central StackOverflow Docker Pulls javadoc

GreenMail allows developers to test email-based applications, services or systems without access to a live mail server. Developers can send, receive, and verify emails by embedding GreenMail in a unit test or running it as a standalone container. GreenMail acts as a virtual (mocking/sandbox) mail server and supports common mail protocols SMTP, IMAP and POP3.

The separate GreenMail Client Integrations project provides containerized example integration of GreenMail with various web mail clients.

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

Version compatibility

GreenMail Mail API Example frameworks
2.1.x JakartaMail 2.1.x
2.0.x JakartaMail 2.0.x Spring 6
1.6.x JakartaMail 1.6.x Spring 5, Apache commons-mail 1.5, ...

Development

  • Build GreenMail from source

    mvn clean install -Pdocker

    Make sure you got Maven 3.9 or higher, and run a JDK 11 or newer. If you want to skip building the docker image, leave out the -Pdocker profile option.

    If you want to skip the long-running tests, use the Maven option -DskipITs .

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

    mvn site -Psite

  • Build and deploy a release

    For rolling a release including version increment and release upload, do

    mvn clean release:prepare -Prelease,release-ossrh,docker,docker-tag-latest mvn release:perform -Prelease,release-ossrh,docker,docker-tag-latest

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

    mvn clean deploy -Prelease,release-ossrh,docker,docker-tag-latest

    Note: Do only use docker-tag-latest profile if you really want the tag latest, e.g. for newest release of the highest version.

  • Build and deploy a snapshot

    For a Maven Snapshot deployment to Sonatype, do

    mvn clean deploy -Prelease-ossrh,docker

  • Check Sonar report

Roadmap

  • 2.1
    • Baseline: Jakarta EE 10
      • JakartaMail 2.1 / Angus Mail
      • Java 11
      • Jersey 3.1.x
    • Only junit 5?
  • 2.0 (branch master)
    • Baseline: Jakarta EE 9
      • JakartaMail 2.0
      • Jersey 3.0.x for servlet 5 / restfulWS-3.0
      • Java 11 for building / running integration tests
    • Java 8
    • Deprecations (no GreenMailRule in greenmail-core, ...)
  • 1.6 (branch releases/1.6.x)
    • Bugfix and maintenance

Contribution guidelines

We really appreciate your contribution! To make it easier for integrating your contribution, have a look at the following guidelines.

Be concise

Try to keep your changes focused. Please avoid (major) refactorings and avoid re-formatting existing code. A good check is looking at the diff of your pull request. Also, please refer to the open issue you're fixing by including a reference in your commit message.

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). As a general best practise, your contribution should adhere to existing code style.

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.

Please also do not introduce new dependencies as we try to keep these to a minimum. If you think you require a new dependencies or dependency update, discuss this up front with committers.

Starting your pull request

The best strategy for opening a pull request after a fork is to add this repository 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

greenmail's People

Contributors

marcelmay avatar dependabot[bot] avatar buildscientist avatar camann9 avatar apinske avatar waelchatila avatar reda-alaoui avatar palimpsestor avatar nikowitt avatar sanjeev-addagarla avatar chessray avatar dtrebbien avatar adamretter avatar davidnewcomb avatar ilgrosso avatar pbugalski-atlassian avatar dertobsch avatar rosolko avatar golovnin avatar antonevane avatar cylon avatar chriswhite199 avatar filtsin avatar ishanarora04 avatar middagj avatar blutorange avatar boris-petrov avatar davidwhitlock avatar domfranke avatar fhopf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.