Bash Script to process Mails from a Buildserver and control a Signal Ligth