#!/bin/sh

EMAIL_ADDR="$1"
if [ -z "$EMAIL_ADDR" ]; then
    echo "first argument should be an e-mail address";
    exit 1
fi

QA_ROBOT="qa-robot-repocop -m $EMAIL_ADDR -j"
$QA_ROBOT -s repocop-warning /usr/share/repocop-report-email/bin/repocop-warning
$QA_ROBOT -s repocop-error /usr/share/repocop-report-email/bin/repocop-error
$QA_ROBOT -s repocop-info /usr/share/repocop-report-email/bin/repocop-info
$QA_ROBOT -s repocop-experimental /usr/share/repocop-report-email/bin/repocop-experimental
$QA_ROBOT -s repocop-patch /usr/share/repocop-report-email/bin/repocop-patch

# all messages -- not used
#$QA_ROBOT -s repocop-reports /usr/share/repocop-report-email/bin/repocop-report
