+

Shortlog

Date Author Message Actions
12-04-20 16:20 Benjamin Renard MantisWS : fix raise error on add notemaster commitdiff tree tar/gz zip patch
12-04-20 16:07 Benjamin Renard install.sh : added python-html2text dependency commitdiff tree tar/gz zip patch
12-04-20 15:57 Benjamin Renard MantisSMTPServer : send email alert to sender on e commitdiff tree tar/gz zip patch
12-04-20 15:56 Benjamin Renard MantisSMTPServer : send email alert to sender on e commitdiff tree tar/gz zip patch
12-04-20 15:55 Benjamin Renard MantisSMTPServer : send email alert to sender on e commitdiff tree tar/gz zip patch
12-04-20 15:54 Benjamin Renard MantisSMTPServer : add method alert_sender() commitdiff tree tar/gz zip patch
12-04-20 15:53 Benjamin Renard MantisSMTPServer : add usage of add_attachment_to_ commitdiff tree tar/gz zip patch
12-04-20 15:39 Benjamin Renard MantisSMTPServer : create add_attachment_to_issue( commitdiff tree tar/gz zip patch
12-04-20 15:32 Benjamin Renard MantisWS : rename duplicated file on error commitdiff tree tar/gz zip patch
12-04-20 15:31 Benjamin Renard MantisWS : improve error log of add_note_to_issue( commitdiff tree tar/gz zip patch
12-04-20 15:22 Benjamin Renard MantisWS : improve error log of add_note_to_issue( commitdiff tree tar/gz zip patch
12-04-20 15:20 Benjamin Renard MantisWS : Increase error log of add_issue_to_proj commitdiff tree tar/gz zip patch
12-04-20 14:47 Benjamin Renard MantisMail.send() : fix encoding problems and log commitdiff tree tar/gz zip patch
12-04-20 14:46 Benjamin Renard Mail & WS : Decode base64 attachments from mail an commitdiff tree tar/gz zip patch
12-04-20 14:42 Benjamin Renard MantisMail.get_text() : do not return html if plai commitdiff tree tar/gz zip patch

more »

Tags

Date Tag Actions

View all tags

Heads

Date Branch Actions
12-04-20 16:20 master

Project informations

Description
Mantis SMTP Gateway
Last Change
12-04-20 16:20
URL
  • http://git.zionetrix.net/git/mantisbt-smtp-gateway
  • git@git.zionetrix.net:public_git/mantisbt-smtp-gateway
README
##### Mantis SMTP Gateway #####

Mantis SMTP Gateway is an email gateway for Mantis Bug Tracker.

Run as a SMTP server, Mantis SMTP try to add email informations to Mantis Bug Tracker through its SOAP API.

Process :
---------

Parsing subject to detect issue id : if present, the email will be processed as a note. Also, create a new issue in project corresponding to email recipient.

Features :
----------

- detect issue id from subject
- add note to existing issue
- create new issue in project
- multiple project support with different email recipient
- add email attachment as issue attachment
- email warning sender on error
- daemon mode (init script provide)

#### Installation ####

### Python Requirements ###

# System lib :
- sys
- os
- signal

# Mail lib :
- email
- smtplib
- smtpd

# SOAP lib :
- suds

# Daemon lib :
- logging
- simplejson : to load config file
- asyncore

# Utils lib :
- re
- string
- optparse.OptionParser : to parse command line parameters

### Redhat/Debian Packages Requirements ###

- python-simplejson
- python-suds

### Scripted installation ###

An installation script is provided :

  ~/mantisbt-smtp-gateway/$ ./install.sh install

### Manual installation ###

- Install requirements
- Copy all file in src directory in root :

    ~/mantisbt-smtp-gateway/$ cd src/
    ~/mantisbt-smtp-gateway/src/$ cp -r * /

#### Configuration ####

Mantis SMTP Gateway use an single JSON configuration file :

  /etc/mantis-smtp.conf

Example :
---------

{
"mail_from": "postmaster-mantis@example.net",
"ws_url": "http://mantis.example.net/api/soap/mantisconnect.php?wsdl",
"ws_user": "MAIL",
"ws_pwd": "password",
"ws_default_category": "other",
"projects": {
	"mantis-project1@example.net": {
		"project_name": "Project 1"
	},
	"mantis-dev@example.net": {
		"project_name": "Development",
		"category": "dev"
	}
}
}

ViewGit