Hello there,
We use blat and have problem with attachment file with coma in the filename:
when we send multiple attachment file without coma in the filename blat is working good, when we send multiple attachment file where only one file have coma in the filename blat is working good also, but as soon we send multipe attachment file with coma in the filename then blat send only the first file and we don't get any error, here is a example of the blat command we use:
"C:\CCS\CCSWIN\WORKFLOW\TMP\workflow_1966_200_AP.html" -server "10.10.0.150" -port "25" -f "from@gmail.com" -log "C:\CCS\CCSWIN\blat.log" -subject "Workflow GL: Approbation facture 19081 pour DEV iLeo Financials " -to "to@gmail.com" -bcc "bcc@gmail.com" -attach "\"C:\Workflow\OUT\FCT_FOUR\Facture 102224 de 194,40 EUR avec des espaces.pdf\","C:\CCS\CCSWIN\WORKFLOW\TMP\Formulaire_1966_200_AP.html",\"C:\tmp\Invoices\Special Name\1910,030.pdf\""
In this example blat only send the file "C:\Workflow\OUT\FCT_FOUR\Facture 102224 de 194,40 EUR avec des espaces.pdf" and not the 2 other one.
Here is what we have in the log file:
2019.07.30 17:30:36 (Tue)------------Start of Session-----------------
Blat v3.2.22 (build : Jul 19 2019 23:25:40)
32-bit Windows, Full, Unicode
Sending C:\CCS\CCSWIN\WORKFLOW\TMP\workflow_1966_200_AP.html to to@gmail.com, to@gmail.com
Subject: Workflow GL: Approbation facture 19081 pour DEV iLeo Financials
Login name is guy.langenakens@bewan.be
Attached binary file: C:\Workflow\OUT\FCT_FOUR\Facture 102224 de 194,40 EUR avec des espaces.pdf
2019.07.30 17:30:36 (Tue)-------------End of Session------------------
Is it a bug in Blat or we have made a error in the blat command ?
Thank you in advance for your help.
Regards.
Guy
In fact when we have multipe attachments , the attachments following the one with coma in the filename are not send :
-attach "\"FileA,Comma\","FileB","FileC"" -> blat will send only FileA,Comma
-attach "\"FileA,Comma\","FileB",\"FileC,Comma\"" -> blat will send only FileA,Comma
-attach ""FileA","FileB",\"FileC,Comma\"" -> blat will send FileA , FileB and FileC,Comma
Maybe the syntax of our -attach is not correct ?
You found a bug in Blat that has been there for a long time (at least as far back as version 2.50), and I have that now fixed. Thank you.
As a way to get all of your attachments sent until I release a new version, you might consider using only one file per -attach option, or possibly adding each filename into a text file on separate lines and use -af option. You can certainly have many -attach options.
The bug you stumbled upon is in the parsing of the attachment names, where I found the quotation marks surrounding your filenames. The comma after the quotation mark was found as a proper delimiter, but when I copied the string off to a holding buffer, I did not account for the comma for looking for additional filenames. The result is I stopped processing the command line argument after the first closing quotation mark.
If you want / need version 3.2.23 with this fixed, send an email to me at chip.programmer@att.net using an address which can receive .zip attachments with executables inside.
Thank you very much for the fix, i will send you a email to have version 3.2.23 ;-)
Thank you , I have now version 3.2.23.
I will make some test this Friday and will let you know ;-)
Hi Chip , i made a test with version 3.2.23 and all is working fine now , thank you ;-)