add script to be called by exim
This commit is contained in:
parent
a45871b95a
commit
a1966b0d95
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
if ! echo $RECIPIENT | grep -q '^support-[a-z-]*@.*$'; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export REDMINE_KEY=`cat /etc/redmine-key`
|
||||
export REDMINE_URL='https://dev.entrouvert.org'
|
||||
|
||||
export PROJECT=`echo $RECIPIENT | sed 's/support-\([a-z-]*\)@.*/\1/'`
|
||||
|
||||
python /usr/local/bin/mail2redmine.py
|
Loading…
Reference in New Issue