consider digits in project names

This commit is contained in:
Serghei Mihai 2016-06-27 14:57:59 +02:00
parent 5e6d87a1c2
commit 8c1f5f791a
1 changed files with 2 additions and 2 deletions

View File

@ -1,12 +1,12 @@
#!/bin/sh
if ! echo $RECIPIENT | grep -q '^support-[a-z-]*@.*$'; then
if ! echo $RECIPIENT | grep -q '^support-[a-z0-9-]*@.*$'; 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/'`
export PROJECT=`echo $RECIPIENT | sed 's/support-\([a-z0-9-]*\)@.*/\1/'`
python /usr/bin/mail2redmine.py