diff options
author | rhatto <rhatto> | 2006-10-12 00:12:52 +0000 |
---|---|---|
committer | rhatto <rhatto> | 2006-10-12 00:12:52 +0000 |
commit | 458ac8d2f5b6dc09fd9783307fe69bfb9029da61 (patch) | |
tree | 7a882e0483e98a07b4b256a2fcd4e16bca2da6bf | |
parent | 0e61d16546d9b0257fe73bfee88c6409962a26d8 (diff) | |
download | firma-458ac8d2f5b6dc09fd9783307fe69bfb9029da61.tar.gz firma-458ac8d2f5b6dc09fd9783307fe69bfb9029da61.tar.bz2 |
EmailListAdministration change in MESSAGE_BODY handling
-rwxr-xr-x | firma | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1790,7 +1790,7 @@ function AdminLog { 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 $* @@ -1808,7 +1808,6 @@ function EmailListAdministration { # 1 on failure :/ #------------------------------------------------------------- - local -i return_code=0 local sender found local command @@ -1822,14 +1821,15 @@ function EmailListAdministration { 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 @@ -1840,7 +1840,7 @@ function EmailListAdministration { ComposeAndSendBounceMessage fi - return $return_code + return $? } |