]> gitweb.fluxo.info Git - firma.git/commitdiff
maquiagem
authorrhatto <rhatto>
Fri, 22 Jul 2005 03:48:53 +0000 (03:48 +0000)
committerrhatto <rhatto>
Fri, 22 Jul 2005 03:48:53 +0000 (03:48 +0000)
firma

diff --git a/firma b/firma
index a4d1a5c4e7a1d89b3c831096a0fab19dc60af381..411a3127973c6eda728713da6756dda223c24916 100755 (executable)
--- a/firma
+++ b/firma
@@ -14,8 +14,8 @@
 # PASSWD= passwd for the lists' keyring
 #
 
-FIRMA_LIST_PATH=/usr/local/etc/lists
-VERSION=0.3
+FIRMA_LIST_PATH="/usr/local/etc/lists"
+VERSION="0.3-cvs"
 
 # todo:
 # errase all vars before quit the game
@@ -25,7 +25,7 @@ VERSION=0.3
 
 function usage {
   echo "usage: `basename $0` <option> <list-name>"
-  echo "-c: create a new list using config-file"
+  echo "-c: create a new list"
   echo "-p: process a message"
   echo "-r: admin and user requests (mail only)"
   echo "-a: admin commands"
@@ -106,8 +106,7 @@ function get_gpg_message {
 function get_headers {
   # get the message headers and the sender's email address
   FROM=$(echo -e "${MESSAGE[@]}" | grep -m 1 "From:" | cut -d : -f 2- | sed -e 's/^ //')
-  FROMADD=$(if [ -z "$(echo $FROM | grep '>$')" ] ; then echo $FROM ; else echo $FROM | grep -o '<[^<>]*>$' | sed -e 's/[<>]//
-g' ; fi)
+  FROMADD=$(if [ -z "$(echo $FROM | grep '>$')" ] ; then echo $FROM ; else echo $FROM | grep -o '<[^<>]*>$' | sed -e 's/[<>]//g' ; fi)
   DATE=$(echo -e "${MESSAGE[@]}" | grep -m 1 "Date:")
   SUBJECT=$(echo -e "${MESSAGE[@]}" | grep -m 1 "Subject:" | cut -d : -f 2- | sed -e 's/^ //')
 }
@@ -224,7 +223,7 @@ function newlist {
       # todo: GPGFLAGS depende de GPGDIR
       GPGCOMMAND="$GPG $GPGFLAGS"
       $GPGCOMMAND --gen-key  
-
+      # ...
     fi
   else
     echo error creating $CONFIG_FILE: list already exists