26 |
|
|
27 |
1 - response time |
1 - response time |
28 |
2 - PR number |
2 - PR number |
29 |
3 - path to the PR file (unused) |
3 - submitter-id |
30 |
4 - submitter-id |
4 - full name of the submitter |
31 |
5 - full name of the submitter |
5 - contact for the submitter |
32 |
6 - contact for the submitter |
6 - address for GNATS_ADMIN |
|
7 - address for GNATS_ADMIN |
|
33 |
" |
" |
34 |
|
|
35 |
PATH=/bin:/usr/bin; export PATH |
PATH=/bin:/usr/bin; export PATH |
47 |
fi |
fi |
48 |
|
|
49 |
# process command line options |
# process command line options |
50 |
while [ $# -gt 7 ]; do |
while [ $# -gt 6 ]; do |
51 |
case "$1" in |
case "$1" in |
52 |
-d | --database) |
-d | --database) |
53 |
if [ $# -eq 8 ] |
if [ $# -eq 7 ] |
54 |
then |
then |
55 |
echo "ERROR: value required for $1 option" >&2 |
echo "ERROR: value required for $1 option" >&2 |
56 |
echo "$USAGE" >&2 |
echo "$USAGE" >&2 |
78 |
exit 1 |
exit 1 |
79 |
fi |
fi |
80 |
|
|
81 |
if [ $# != 7 ]; then |
if [ $# != 6 ]; then |
82 |
echo "ERROR: $prog called with the incorrect number of arguments" >&2 |
echo "ERROR: $prog called with the incorrect number of arguments" >&2 |
83 |
echo "$USAGE" >&2 |
echo "$USAGE" >&2 |
84 |
exit 1 |
exit 1 |
106 |
|
|
107 |
# $DEBUG_MODE is set to 0 when debug is off in the config file |
# $DEBUG_MODE is set to 0 when debug is off in the config file |
108 |
if [ "x$DEBUG_MODE" = "x1" ]; then |
if [ "x$DEBUG_MODE" = "x1" ]; then |
109 |
STEALTH_HEADER="From: $7 (GNATS Management) |
STEALTH_HEADER="From: $6 (GNATS Management) |
110 |
To: $7 |
To: $6 |
111 |
Subject: mail output from at-pr |
Subject: mail output from at-pr |
112 |
|
|
113 |
|
|
116 |
|
|
117 |
if [ "$STATE" = "${DEFAULTSTATE}" ]; then |
if [ "$STATE" = "${DEFAULTSTATE}" ]; then |
118 |
$LIBEXECDIR/mail-agent << __EOF__ |
$LIBEXECDIR/mail-agent << __EOF__ |
119 |
${STEALTH_HEADER}From: $7 (GNATS Management) |
${STEALTH_HEADER}From: $6 (GNATS Management) |
120 |
To: $6, $RESP_ADDR, $7 |
To: $5, $RESP_ADDR, $6 |
121 |
Subject: PR $2 not analyzed in $1 hours |
Subject: PR $2 not analyzed in $1 hours |
122 |
|
|
123 |
|
|
124 |
PR $2 was not analyzed within the acknowledgment period |
PR $2 was not analyzed within the acknowledgment period |
125 |
of $1 business hours. The pertinent information is: |
of $1 business hours. The pertinent information is: |
126 |
|
|
127 |
Submitter-Id: $4 |
Submitter-Id: $3 |
128 |
Originator: $5 |
Originator: $4 |
129 |
Synopsis: $SYNOPSIS |
Synopsis: $SYNOPSIS |
130 |
Person responsible for the PR: $RESPONSIBLE |
Person responsible for the PR: $RESPONSIBLE |
131 |
|
|