if [ "$MODE" == "admin-interactive" ]; then
echo >&2 "$*"
- elif [ "$MODE" == "admin-non-interactive" ]; then
+ # elif [ "$MODE" == "admin-non-interactive" ]; then
ADMIN_MESSAGE="$ADMIN_MESSAGE\n$*"
else
echo $*
# 1 on failure :/
#-------------------------------------------------------------
- local -i return_code=0
local sender found
local command
if [ "$found" == "1" ]; then
# message was sent by an admin
#+then, parse and process admin tasks
- echo -e "$DECRYPTED_MESSAGE" | while read command; do
+ MESSAGE_BODY="\
+ `echo -e "$DECRYPTED_MESSAGE" | while read command; do
if [ ! -z "$command" ]; then
AdminLog "Command> $command"
ListAdministration $command
fi
- done
+ done`"
# TODO: send encrypted
- MESSAGE_BODY="`echo -e "$ADMIN_MESSAGE"`"
+ # MESSAGE_BODY="`echo -e "$ADMIN_MESSAGE"`"
ComposeAndSendBounceMessage
else
# message was sent by a normal subscriber
ComposeAndSendBounceMessage
fi
- return $return_code
+ return $?
}