diff options
author | rhatto <rhatto> | 2005-08-09 01:21:01 +0000 |
---|---|---|
committer | rhatto <rhatto> | 2005-08-09 01:21:01 +0000 |
commit | 8bb6f15a4347df9866734f92ac00f313b7fc11ae (patch) | |
tree | e5375b5f5891510151d570778461725e006d97ba | |
parent | de73116d1961fd7bed28585b62c7e9bb6758b410 (diff) | |
download | firma-8bb6f15a4347df9866734f92ac00f313b7fc11ae.tar.gz firma-8bb6f15a4347df9866734f92ac00f313b7fc11ae.tar.bz2 |
change in message_list to a better LIST_MESSAGE construction
-rwxr-xr-x | firma | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -131,7 +131,13 @@ function message_list { # compose and send a message to the list # $1: subscriber email # sorry no identation :P -n=0 +n=4 + +LIST_MESSAGE[0]="From: $LISTNAME\n" +LIST_MESSAGE[1]="To: $1\n" +LIST_MESSAGE[2]="Subject: none\n" +LIST_MESSAGE[3]="\n" + echo "$PASSWD Message from: $FROM Subject: $SUBJECT @@ -145,11 +151,7 @@ $(echo -e "$PASSWD\n${GPG_MESSAGE[@]}" | $GPGDECRYPT 2> /dev/null)" | sed -e 's/ ((++n)) done -echo "From: $LISTNAME -To: $1 -Subject: none - -$(echo -e "${LIST_MESSAGE[@]}")" | $MAIL $MAIL_ARGS +echo -e "${LIST_MESSAGE[@]}") | $MAIL $MAIL_ARGS } |