diff options
author | rhatto <rhatto> | 2006-10-11 23:15:06 +0000 |
---|---|---|
committer | rhatto <rhatto> | 2006-10-11 23:15:06 +0000 |
commit | 16ae399ecb31cfe4d9f7dbb1093f21c304ba03d8 (patch) | |
tree | bb221073da47c14b4ba221819605a2dba9efe81f | |
parent | 17d6d5454eecdddfa38bdc30ca44ffbf21cea1e3 (diff) | |
download | firma-16ae399ecb31cfe4d9f7dbb1093f21c304ba03d8.tar.gz firma-16ae399ecb31cfe4d9f7dbb1093f21c304ba03d8.tar.bz2 |
EmailListAdministration third fix
-rwxr-xr-x | firma | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -1783,15 +1783,23 @@ function AdminLog { #+or email and then log a message according to the #+display mode # - # parameter(s): string + # parameter(s): string / --send (to send a message back) # 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 else - ADMIN_MESSAGE="`echo -e "$ADMIN_MESSAGE\n$*"`" + echo $* fi } @@ -1826,9 +1834,7 @@ function EmailListAdministration { ListAdministration $command fi done - # TODO: send encrypted - MESSAGE_BODY="$ADMIN_MESSAGE" - ComposeAndSendBounceMessage + AdminLog --send else # message was sent by a normal subscriber # this is the body of the message to be sent, so no indentation here |