diff options
author | rhatto <rhatto> | 2005-07-22 03:48:53 +0000 |
---|---|---|
committer | rhatto <rhatto> | 2005-07-22 03:48:53 +0000 |
commit | 5b015a32499a5e4663dcbd0dffd3f23f2aafe9c1 (patch) | |
tree | 50ba8acfc06f20abec14e247cfc4ff020528f086 | |
parent | d5dec441d957dce492f8db65b5951d39e7f0541b (diff) | |
download | firma-5b015a32499a5e4663dcbd0dffd3f23f2aafe9c1.tar.gz firma-5b015a32499a5e4663dcbd0dffd3f23f2aafe9c1.tar.bz2 |
maquiagem
-rwxr-xr-x | firma | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 |