aboutsummaryrefslogtreecommitdiffstats
path: root/mail/biabam
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2004-12-21 06:01:49 +0800
committersem <sem@FreeBSD.org>2004-12-21 06:01:49 +0800
commit1b2288183670a90022f2207e127a7b66f72a7cbb (patch)
tree78ca2f8fa355079d45f463a2740be4d06d1cea95 /mail/biabam
parent70a5c3406e5b4d479ba9ad390c551caa0dbf4c01 (diff)
downloadfreebsd-ports-gnome-1b2288183670a90022f2207e127a7b66f72a7cbb.tar.gz
freebsd-ports-gnome-1b2288183670a90022f2207e127a7b66f72a7cbb.tar.zst
freebsd-ports-gnome-1b2288183670a90022f2207e127a7b66f72a7cbb.zip
- Fix jot parameters order
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