]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
The subtle way BuildAttachArgs uses quotes and whitespace was missed when
authorAidan Van Dyk <aidan@ifax.com>
Mon, 29 Jan 2007 19:58:20 +0000 (19:58 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Mon, 29 Jan 2007 19:58:20 +0000 (19:58 +0000)
it was taken for use in pollrcvd and faxrcvd.  This makes them both use
it was intended.

Also - fix file_XXX to be files_XXX which is what BuildAttachArgs expects.

util/faxrcvd.sh.in
util/pollrcvd.sh.in

index 6cd0dbf41f997ce0b2fe5a232e3ea2b78249a494..fe49782ca289ba4ce6580d1ea9fd416230461100 100644 (file)
@@ -155,10 +155,11 @@ fi
 MailWithFAX ()
 {
     template="etc/templates/$TEMPLATE/faxrcvd-$1.txt"
-    file_1=$FILE;
+    files_1=$FILE;
     filetype_1=TIFF;
     nfiles=1;
-    CreateMailMessage $template `BuildAttachArgs $FILETYPE` \
+    ATTACH_ARGS=`BuildAttachArgs $FILETYPE`
+    eval CreateMailMessage $template $ATTACH_ARGS \
        2>$ERRORSTO | $SENDMAIL -f"$FROMADDR" -oi "$SENDTO"
 
 }
index d28854c0596a12eb74122e780ecead4ceb733b50..b8f7c86c92a4da9c91be6f9a16a6870153cbd663 100644 (file)
@@ -153,10 +153,11 @@ TemplateName ()
 MailWithFAX ()
 {
     template=`TemplateName $1`
-    file_1=$FILE;
+    files_1=$FILE;
     filetype_1=TIFF;
     nfiles=1;
-    CreateMailMessage $template `BuildAttachArgs $FILETYPE` \
+    ATTACH_ARGS=`BuildAttachArgs $FILETYPE`
+    eval CreateMailMessage "$template" $ATTACH_ARGS \
        2>$ERRORSTO | $SENDMAIL -f"$FROMADDR" -oi "$SENDTO"
 
 }