diff options
author | rhatto <rhatto> | 2005-08-07 17:07:05 +0000 |
---|---|---|
committer | rhatto <rhatto> | 2005-08-07 17:07:05 +0000 |
commit | e4bb923885a0ece91fc73669cdd2f48e879711e9 (patch) | |
tree | a2d13e419c9502f05622b13417b8755194a1e2d2 /firma | |
parent | 36fe5864c11681361d7c11cbede726c43ae17082 (diff) | |
download | firma-e4bb923885a0ece91fc73669cdd2f48e879711e9.tar.gz firma-e4bb923885a0ece91fc73669cdd2f48e879711e9.tar.bz2 |
changes since firma rev 1.6
Diffstat (limited to 'firma')
-rwxr-xr-x | firma | 26 |
1 files changed, 24 insertions, 2 deletions
@@ -136,6 +136,8 @@ function message_list { # compose and send a message to the list # $1: subscriber email # sorry no identation :P +n=0 +unset LIST_MESSAGE echo "$PASSWD Message from: $FROM Subject: $SUBJECT @@ -144,7 +146,17 @@ $DATE $(get_gpg_stderr | grep -F 'gpg: Signature made') $(get_gpg_stderr | grep -F 'gpg: Good signature from') -$(echo -e "$PASSWD\n${GPG_MESSAGE[@]}" | $GPGDECRYPT 2> /dev/null)" | sed -e 's/=20$//' | $GPGENCRYPT $1 | $MAIL -r $LISTNAME $1 +$(echo -e "$PASSWD\n${GPG_MESSAGE[@]}" | $GPGDECRYPT 2> /dev/null)" | sed -e 's/=20$//' | $GPGENCRYPT $1 | while read STDIN; do + LIST_MESSAGE[$n]="$STDIN\n" + ((++n)) +done + +echo -e "From: $LISTNAME +To: $1 +Subject: none + +$(echo -e "${LIST_MESSAGE[@]}")" | $MAIL $MAIL_ARGS + } function message_list_error { @@ -158,7 +170,17 @@ $DATE $(get_gpg_stderr | grep -F 'gpg: Signature made') $(get_gpg_stderr | grep -F 'gpg: BAD signature from') -$(echo -e "$PASSWD\n${GPG_MESSAGE[@]}" | $GPGDECRYPT 2> /dev/null)" | sed -e 's/=20$//' | $GPGENCRYPT $1 | $MAIL -r $LISTNAME $1 +$(echo -e "$PASSWD\n${GPG_MESSAGE[@]}" | $GPGDECRYPT 2> /dev/null)" | sed -e 's/=20$//' | $GPGENCRYPT $1 | while read STDIN; do + LIST_MESSAGE[$n]="$STDIN\n" + ((++n)) +done + +echo -e "From: $LISTNAME +To: $1 +Subject: none + +$(echo -e "${LIST_MESSAGE[@]}")" | $MAIL $MAIL_ARGS + } function message_list_return { |