aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto>2005-08-09 01:21:01 +0000
committerrhatto <rhatto>2005-08-09 01:21:01 +0000
commit8bb6f15a4347df9866734f92ac00f313b7fc11ae (patch)
treee5375b5f5891510151d570778461725e006d97ba
parentde73116d1961fd7bed28585b62c7e9bb6758b410 (diff)
downloadfirma-8bb6f15a4347df9866734f92ac00f313b7fc11ae.tar.gz
firma-8bb6f15a4347df9866734f92ac00f313b7fc11ae.tar.bz2
change in message_list to a better LIST_MESSAGE construction
-rwxr-xr-xfirma14
1 files changed, 8 insertions, 6 deletions
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
}