aboutsummaryrefslogtreecommitdiff
path: root/mail/biabam
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2004-12-20 22:01:49 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2004-12-20 22:01:49 +0000
commitad4b02ae04d36a6dad4db5e2225c1e957da57449 (patch)
treeaf907e0543569050dd17f7c0f1a83d0f76700cba /mail/biabam
parent3ec52f57530d9e925eac0de02d81cd987ab1cc4f (diff)
downloadports-ad4b02ae04d36a6dad4db5e2225c1e957da57449.tar.gz
ports-ad4b02ae04d36a6dad4db5e2225c1e957da57449.zip
Notes
Diffstat (limited to 'mail/biabam')
-rw-r--r--mail/biabam/files/patch-biabam14
1 files changed, 7 insertions, 7 deletions
diff --git a/mail/biabam/files/patch-biabam b/mail/biabam/files/patch-biabam
index 20104efefa86..aa6a16ac80a6 100644
--- a/mail/biabam/files/patch-biabam
+++ b/mail/biabam/files/patch-biabam
@@ -15,7 +15,7 @@
TOTAL_ATTACHMENTS=`echo "$1" | awk -F$SP '{print NF}'`
-for i in `seq 1 $TOTAL_ATTACHMENTS`;
-+for i in `jot 1 $TOTAL_ATTACHMENTS`;
++for i in `jot $TOTAL_ATTACHMENTS 1`;
do
STR="'{print \$$i}'"
# store filenames in an array
@@ -24,7 +24,7 @@
BASETEMP="`basename $TEMPFILE`"
-for i in `seq 1 $TOTAL_ATTACHMENTS`; do
-+for i in `jot 1 $TOTAL_ATTACHMENTS`; do
++for i in `jot $TOTAL_ATTACHMENTS 1`; do
# array for attachments basename
BASEATTACHMENT[$i]="`basename \"${ARR_ATTACHMENTS[$i]}\"`"
# test if file exists
@@ -42,7 +42,7 @@
TOTAL_EMAILS=`echo "$1" | awk -F$SP '{print NF}'`
-for i in `seq 1 $TOTAL_EMAILS`; do
-+for i in `jot 1 $TOTAL_EMAILS`; do
++for i in `jot $TOTAL_EMAILS 1`; do
STR="'{print \$$i}'"
# store recipients in an array
ARR_EMAILS[$i]=`sh -c "echo "$1" | awk -F$SP $STR" `
@@ -51,7 +51,7 @@
TO="To:"
-for i in `seq 1 $TOTAL_EMAILS`; do
-+for i in `jot 1 $TOTAL_EMAILS`; do
++for i in `jot $TOTAL_EMAILS 1`; do
# write the 'To:' field with all recipients previously stored in the array
TO="$TO <${ARR_EMAILS[$i]}>,"
done
@@ -60,7 +60,7 @@
echo >> $TEMPFILE
-for i in `seq 1 $TOTAL_ATTACHMENTS`; do
-+for i in `jot 1 $TOTAL_ATTACHMENTS`; do
++for i in `jot $TOTAL_ATTACHMENTS 1`; do
echo "--$BOUNDARY" >> $TEMPFILE
echo "Content-Type: ${TYPE[$i]}" >> $TEMPFILE
echo "Content-Disposition: attachment; filename=\"${BASEATTACHMENT[$i]}\"" >> $TEMPFILE
@@ -69,7 +69,7 @@
echo >> $TEMPFILE
-for i in `seq 1 $TOTAL_EMAILS`; do
-+for i in `jot 1 $TOTAL_EMAILS`; do
++for i in `jot $TOTAL_EMAILS 1`; do
# put all recipients together to call sendmail below
RECIPIENTS="$RECIPIENTS ${ARR_EMAILS[$i]}"
done
@@ -77,7 +77,7 @@
cat $TEMPFILE | $SENDMAIL $SENDMAIL_OPTS $RECIPIENTS # here we call sendmail
-for i in `seq 1 $TOTAL_ATTACHMENTS`; do
-+for i in `jot 1 $TOTAL_ATTACHMENTS`; do
++for i in `jot $TOTAL_ATTACHMENTS 1`; do
/bin/rm -f ${TEMPUUENCODED[$i]} # remove all temp files created
done