-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmailcmd.sh
executable file
·30 lines (26 loc) · 1.03 KB
/
mailcmd.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
#------------------------------------------------------------------
# get params
#------------------------------------------------------------------
CMDNAME=`basename $0`
ACCOUNTNAME=$1
USERNAME=$2
# $3 is a dummy (will eventually become host-name)
# $4 is a dummy (will eventually become "POP3" | "IMAP")
COUNT_NEW=$5
COUNT_TOTAL=$6
#------------------------------------------------------------------
# set some variables
#------------------------------------------------------------------
LOGCMD="logger -t $CMDNAME"
SVDRPSEND="svdrpsend.pl"
#------------------------------------------------------------------
# log the parameters
#------------------------------------------------------------------
$LOGCMD "========================================================"
$LOGCMD "svdrpsend : '$SVDRPSEND'"
$LOGCMD "AccountName : '$ACCOUNTNAME'"
$LOGCMD "UserName : '$USERNAME'"
$LOGCMD "New / Total : $COUNT_NEW / $COUNT_TOTAL"
$LOGCMD "========================================================"
exit $EXTRET