From: rhatto Date: Tue, 9 Aug 2005 01:21:01 +0000 (+0000) Subject: change in message_list to a better LIST_MESSAGE construction X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8bb6f15a4347df9866734f92ac00f313b7fc11ae;p=firma.git change in message_list to a better LIST_MESSAGE construction --- diff --git a/firma b/firma index 3e96974..a4f9e14 100755 --- a/firma +++ b/firma @@ -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 }