aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto>2005-08-07 15:12:44 +0000
committerrhatto <rhatto>2005-08-07 15:12:44 +0000
commitd63679867e2f73b28bdebb70db478b16e8f500fe (patch)
tree9f5d66bfc2b0c0205d1c2b51267d47e7d507463f
parent5994e0a308410bcadc4a745e61b25eea4773cb65 (diff)
downloadfirma-d63679867e2f73b28bdebb70db478b16e8f500fe.tar.gz
firma-d63679867e2f73b28bdebb70db478b16e8f500fe.tar.bz2
primeiro teste com sendmail
-rwxr-xr-xfirma8
1 files changed, 5 insertions, 3 deletions
diff --git a/firma b/firma
index 6326362..72150ed 100755
--- a/firma
+++ b/firma
@@ -42,7 +42,6 @@ function version {
echo "for more details."
}
-
function check_config {
# check configuration file parameters
if [ ! -f $GPG -o ! -x $GPG ]; then
@@ -164,7 +163,10 @@ function message_list_return {
# send a bounce message
# $1: sender email (usually $FROMADD)
# sorry no identation :P
-echo "
+echo "From: $LISTNAME
+To: $1
+Subject: none
+
Message from: $FROM
Subject: [RETURNED MAIL] $SUBJECT
$DATE
@@ -175,7 +177,7 @@ $DATE
you have any questions. ]
--
- firma v$VERSION" | $MAIL -r $LISTNAME $1
+ firma v$VERSION" | $MAIL $MAIL_ARGS
}
function process_message {