simple script that converts incoming emails to redmine tickets
Go to file
Emmanuel Cazenave fcdd936ec6 add python 3 compat (#60498)
And upgrade packaging.
2022-01-17 15:49:18 +01:00
debian add python 3 compat (#60498) 2022-01-17 15:49:18 +01:00
mail_dumps ignore empty attachments (#13022) 2016-09-02 09:22:57 +02:00
Jenkinsfile add python 3 compat (#60498) 2022-01-17 15:49:18 +01:00
README initial tests (#10527) 2016-04-25 16:06:37 +02:00
eo-redmine-mailfilter.sh add a blacklist for attachments (#15672) 2017-04-03 09:15:07 +02:00
mail2redmine.py add python 3 compat (#60498) 2022-01-17 15:49:18 +01:00
setup.py misc: PEP 440 compliant version number 2019-09-30 17:58:38 +02:00
test_mail2redmine.py add python 3 compat (#60498) 2022-01-17 15:49:18 +01:00
tox.ini add python 3 compat (#60498) 2022-01-17 15:49:18 +01:00

README

mail2redmine
============

mail2redmine converts incoming email from Exim to Redmine tracker tickets by
using mail subject and body as ticket title and description respectively.

Ticket owner is detected from sender's address if a corresponding account
exists on Redmine. The email is sent to a fallback address if account doesn't
exist.

Email attachment are joined to the ticket.

Installation and configuration
==============================

Copy both scripts ``mail2redmine.py`` and ``eo-redmine-mailfilter.sh`` under
`/usr/local/bin`.

Configure your exim server to redirect emails to ``eo-redmine-mailfilter.sh``
script:

`
^support-[a-z-]*: "|/usr/local/bin/eo-redmine-mailfilter.sh"
`

Put an admin's account API key in ``/etc/redmine-key`` file.

Testing
=======

Install pytest to run tests.
Then run:
`
py.test
`