mail2redmine/eo-redmine-mailfilter.sh

14 lines
359 B
Bash
Raw Normal View History

2016-03-29 14:50:25 +02:00
#!/bin/sh
2016-06-27 14:57:59 +02:00
if ! echo $RECIPIENT | grep -q '^support-[a-z0-9-]*@.*$'; then
2016-03-29 14:50:25 +02:00
exit 1
fi
export REDMINE_KEY=`cat /etc/redmine-key`
export REDMINE_URL='https://dev.entrouvert.org'
export ATTACHMENTS_BLACKLIST=/etc/redmine.attachments.blacklist.json
2016-03-29 14:50:25 +02:00
2016-06-27 14:57:59 +02:00
export PROJECT=`echo $RECIPIENT | sed 's/support-\([a-z0-9-]*\)@.*/\1/'`
2016-03-29 14:50:25 +02:00
2016-06-06 10:54:30 +02:00
python /usr/bin/mail2redmine.py