GithubHelp home page GithubHelp logo

digineo / sisimai-web Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 2.0 61 KB

Microservice to analyze bounce messages

License: MIT License

Dockerfile 9.60% Ruby 90.40%
docker sisimai bounce-handling bounce-mails sinatra-applications microservice

sisimai-web's Introduction

sisimai-web

Simple Sinatra web application to inspect bounce emails using Sisimai.

We try to follow the Sisimai releases. Feel free to open an issue or create a pull request, should we fall behind.

Installation from source

Download the code, install the dependencies and start the server.

$ git clone https://github.com/digineo/sisimai-web
$ cd sisimai-web
$ bundle install
$ bundle exec rackup --host 127.0.0.1 --port 3000

Installation with Docker

We automatically build and push Docker images the project's container registry.

$ docker pull ghcr.io/digineo/sisimai-web
$ docker run -d -p 3000:3000 ghcr.io/digineo/sisimai-web
Image tag corresponds to
ghcr.io/digineo/sisimai-web:master latest Git master branch
ghcr.io/digineo/sisimai-web:4 latest Release in the 4.x series
ghcr.io/digineo/sisimai-web:4.25.15 a specific release
ghcr.io/digineo/sisimai-web:latest the latest build from the above

Note: You might find earlier versions on the Docker Hub, as digineode/sisimai-web; these releases are now deprecated and unsupported. Expect the Docker Hub repository to vanish in the near future.

Usage

After starting the application, the (API only) endpoint becomes available at http://localhost:3000/.

Have a bounce mail:

$ head -5 message.eml
Received: by m.sender.com (Postfix)
	id 7A3371230; Sun, 22 Jan 2012 22:17:05 -0800 (PST)
Date: Sun, 22 Jan 2012 22:17:05 -0800 (PST)
From: [email protected] (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender

... and POST it to the endpoint:

$ curl -sXPOST --data-binary @message.eml http://localhost:3000/ | \
  jq 'with_entries(select(.key == ("action","reason","softbounce")))'
{
  "action": "failed",
  "reason": "userunknown",
  "softbounce": 0
}

Credits

Sisimai is an excellent bounce mail parser library by azumakuniyuki.

The test messages for the test suite were extracted from emiles-go-bounce-parser.

License

Copyright (c) 2020, Dominik Menke, Digineo GmbH

MIT, see LICENSE for details.

sisimai-web's People

Contributors

dependabot[bot] avatar dmke avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sisimai-web's Issues

Returned body is null

Hi there, I was trying to work with this docker container but when I send a request through postman, I get a null return with status code 200.

Postman request:
image

Docker logs:
image

Docker container:
image

Docker command: docker run -d -p 3000:3000 ghcr.io/digineo/sisimai-web

Could you guys point out what am I doing wrong?

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.