simple script that converts incoming emails to redmine tickets
Go to file
Agate 22f12c8851
gitea/mail2redmine/pipeline/head This commit looks good Details
Prepare Jenkinsfile for Gitea migration (#74572)
2023-02-20 15:10:21 +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 Prepare Jenkinsfile for Gitea migration (#74572) 2023-02-20 15:10:21 +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 trivial: remove python 2 from classifiers 2022-02-02 08:09:51 +01: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
`