]> gitweb.fluxo.info Git - firma.git/commitdiff
change in message_list to a better LIST_MESSAGE construction
authorrhatto <rhatto>
Tue, 9 Aug 2005 01:21:01 +0000 (01:21 +0000)
committerrhatto <rhatto>
Tue, 9 Aug 2005 01:21:01 +0000 (01:21 +0000)
firma

diff --git a/firma b/firma
index 3e96974333e8e2db544d8cbcc36ef7acd617e617..a4f9e148e0f9e627c9caf3457d27ef7bfa18da2d 100755 (executable)
--- 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
 
 }