diff options
-rwxr-xr-x | firma | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -86,7 +86,7 @@ function get_subscribers_list { } function get_message { - LINES=0 ; unset MESSAGE + LINES=0 while read STDIN; do MESSAGE[$LINES]="$STDIN\n" ((++LINES)) @@ -94,7 +94,7 @@ function get_message { } function get_gpg_message { - signal=0; unset GPG_MESSAGE + signal=0 if [ ! -z "$LINES" ]; then x=0; n=$LINES for ((count=0;count<=n;count++)); do @@ -131,8 +131,7 @@ function message_list { # compose and send a message to the list # $1: subscriber email # sorry no identation :P -n=0; unset LIST_MESSAGE -unset LIST_MESSAGE +n=0 echo "$PASSWD Message from: $FROM Subject: $SUBJECT @@ -157,7 +156,7 @@ $(echo -e "${LIST_MESSAGE[@]}")" | $MAIL $MAIL_ARGS function message_list_error { # compose and send an error message # sorry no identation :P -n=0; unset LIST_MESSAGE +n=0 echo "$PASSWD Message from: $FROM Subject: [BAD SIGNATURE] $SUBJECT |