]> gitweb.fluxo.info Git - firma.git/commitdiff
changes since firma rev 1.6
authorrhatto <rhatto>
Sun, 7 Aug 2005 17:07:05 +0000 (17:07 +0000)
committerrhatto <rhatto>
Sun, 7 Aug 2005 17:07:05 +0000 (17:07 +0000)
CHANGELOG
firma

index f79a9c0f09068cf07505b4ebb80712106ac8bf48..d1e86292319300d16d92787450aa2fcbbd6199c4 100755 (executable)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,7 +1,22 @@
 Firma CHANGELOG 
 ---------------
 
-05/05/2005 - 0.3-cvs - luis
+07/05/2005 - 0.3-cvs (rev 1.13) - rhatto 
+
+  - Firma now uses sendmail or any smtp wrapper directly:
+    - Specify your smtp wrapper through MAIL var, eg:
+      MAIL=/usr/sbin/sendmail
+      MAIL=/usr/bin/ssmtp
+    - Command-line arguments passed to the wrapper must
+      be specified in var MAIL_ARGS
+  - Change in functions get_message and get_gpg_message,
+    introducing the variable LINES (total lines of the
+    received message).
+  - New array: LIST_MESSAGE: keeps the encrypted message
+    sent to each subscriber; is needed to the smpt wrapper
+    and will help PGP/MIME handling.
+
+05/05/2005 - 0.3-cvs (rev 1.6) - luis
 
   - New functions: list_admin, choose_uid and version.
   - Renamed functions
diff --git a/firma b/firma
index e81b6f39036064bc45381f2d229238c1ac48b9d1..e992a5463c16fb10442b7311eabd52fb35b39ddf 100755 (executable)
--- a/firma
+++ b/firma
@@ -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 {