Hi,

I've sent some test faxes with almost the same sendfax options:

 sendfax -D -f '...' -d XXXXXXXXXXX fax1.pdf fax2.pdf fax3.pdf

and notifications *worked* BUT sent only the first page of the thee.

Looking at the command trace (manual started notify, see my previous message in 
this bug) i found:

 [...]
 ++ BuildAttachArgs pdf
 ++ case $1 in
 ++ a_type=application/PDF
 ++ a_desc='FAX Document (PDF)'
 +++ LocalSequence 1 3
 +++ '[' 1 -gt 3 ']'
 +++ COUNT=1
 +++ '[' 1 -le 3 ']'
 +++ echo 1
 ++++ expr 1+1
 +++ COUNT=1+1
 +++ '[' 1+1 -le 3 ']'
 bin/common-functions: line 425: [: 1+1: integer expression expected
 ++ for i in '`LocalSequence 1 $nfiles`'
 ++ eval 'filename=$files_1'
 [...]

"expr" is returning "1+1" as a string?!?

After having fixed it subtituting expr:

--- bin/common-functions        2008-06-24 16:18:16.000000000 +0000
+++ bin/common-functions.orig   2008-06-24 10:13:43.000000000 +0000
@@ -425,7 +425,7 @@
     while [ $COUNT -le $2 ]
     do
        echo $COUNT
-       COUNT=$((COUNT+1))
+       COUNT=`expr $COUNT + 1`
     done
 }

i still see a very strange error:

 +++ TraceLog 'Converting docq/doc221.pdf to PDF'
 +++ echo Converting docq/doc221.pdf to PDF
 Converting docq/doc221.pdf to PDF
 +++ case $2 in
 +++ TraceLog 'No conversion'
 +++ echo No conversion
 No conversion
 +++ echo docq/doc221.pdf
 ++ a_file=docq/doc221.pdf
 +++ basename docq/doc221.pdf
 bin/notify: line 147: /usr/bin/basename: Argument list too long
 ++ a_name=

leaving "a_name" empty.

Changed "offending" line:

--- bin/notify  2008-06-24 17:34:40.000000000 +0000
+++ bin/notify.orig     2008-06-24 16:41:40.000000000 +0000
@@ -144,7 +144,7 @@
                esac
            else
                a_file=`ConvertFile "$filename" "$filetype" "$1"`
-               a_name="Fax_${jobid}-file_${i}.${1}"
+               a_name=`basename $a_file`
            fi

        fi

and that error disappeared.

Unfortunately still remaining 2 errors:

 + eval CreateMailMessage etc/templates//notify-done.txt ' "docq/doc221.pdf" 
"application/PDF" "Fax_167-file_1.pdf" "FAX Document (PDF)" "docq/doc222.pdf" 
"application/PDF" "Fax_167-file_2.pdf" "FAX Document (PDF)"'
 bin/notify: line 212: /dev/pts/3: Permission denied
 + /usr/sbin/sendmail '-fFax system <nomail.nodomain>' -oi [EMAIL PROTECTED]
 bin/notify: line 213: /usr/sbin/sendmail: Argument list too long
 + CleanupPrivateTmp
 + '[' -d /tmp/tmp-21368 ']'
 + case "$TMPDIR" in
 + rm -Rf /tmp/tmp-21368
 bin/common-functions: line 450: /bin/rm: Argument list too long

OK, white flag here :-(

I cannot figure out why all that "Argument list too long" errors.

Ciao.
Giovanni.

-- 
Giovanni Biscuolo

Xelera - IT infrastructures
http://xelera.eu/contact-us/

Attachment: signature.asc
Description: Digital signature

Reply via email to