#+or email and then log a message according to the
#+display mode
#
- # parameter(s): string / --send (to send a message back)
+ # parameter(s): string
# depends on function(s): none
# returns: 0
#-------------------------------------------------------------
if [ "$MODE" == "admin-interactive" ]; then
echo >&2 "$*"
elif [ "$MODE" == "admin-non-interactive" ]; then
- if [ "$1" == "--send" ]; then
- # TODO: send encrypted
- MESSAGE_BODY="`echo -e "$ADMIN_MESSAGE"`"
- ComposeAndSendBounceMessage
- else
- ADMIN_MESSAGE="$ADMIN_MESSAGE\n$*"
- fi
+ ADMIN_MESSAGE="$ADMIN_MESSAGE\n$*"
else
echo $*
fi
ListAdministration $command
fi
done
- AdminLog --send
+ # TODO: send encrypted
+ MESSAGE_BODY="`echo -e "$ADMIN_MESSAGE"`"
+ ComposeAndSendBounceMessage
else
# message was sent by a normal subscriber
# this is the body of the message to be sent, so no indentation here