Skip Menu |

This queue is for tickets about the Email-Send-SMTP-Gmail CPAN distribution.

Report information
The Basics
Id: 71864
Status: resolved
Priority: 0/
Queue: Email-Send-SMTP-Gmail

People
Owner: PECO [...] cpan.org
Requestors: mikesdocuments [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: attachments syntax bug
Date: Sat, 22 Oct 2011 23:18:37 -0700 (PDT)
To: bug-Email-Send-SMTP-Gmail [...] rt.cpan.org
From: Mike Bennett <mikesdocuments [...] yahoo.com>
In the -attachments option, the parsing of the string does not handle whitespace well. examples : -attachments=>'C:\perl\testfiles\d1.txt,C:\perl\testfiles\d2.txt' SUCCEEDS -attachments=>'C:\perl\testfiles\d1.txt, C:\perl\testfiles\d2.txt' FAILS to attach d2.txt -attachments=>'C:\perl\testfiles\d1.txt,c:\perl\testfiles\d2.txt, ' FAILS -attachments=>'C:\perl\testfiles\d1.txt,c:\perl\testfiles\d2.txt,' SUCCEEDS Suspect there will also be problems if tabs and newlines are included in the attachments string. Work-arounds are possible of course - it just that usually you'd expect the whitespace to be ignored automatically. However, thanks so much for providing this module - It's the only one which works with a) windows b) with gmail and c) with attachments - very useful indeed! Please publicize the module more widely - I see many people on the blogs struggling with email in perl. Mike
Sorry for this delay :-( I have improved attachment checking, filtering spaces, tabs, null and newline characters. New release (0.24) should be available soon at CPAN (already uploaded) Thanks a lot for your support! On Sun Oct 23 02:18:45 2011, mikesdocuments@yahoo.com wrote: Show quoted text
> In the -attachments option, the parsing of the string does not handle > whitespace well. > > examples : > > -attachments=>'C:\perl\testfiles\d1.txt,C:\perl\testfiles\d2.txt' > SUCCEEDS > > -attachments=>'C:\perl\testfiles\d1.txt, C:\perl\testfiles\d2.txt' > FAILS to attach d2.txt > > -attachments=>'C:\perl\testfiles\d1.txt,c:\perl\testfiles\d2.txt, ' > FAILS > > -attachments=>'C:\perl\testfiles\d1.txt,c:\perl\testfiles\d2.txt,' > SUCCEEDS > > > Suspect there will also be problems if tabs and newlines are included > in the attachments string. > > Work-arounds are possible of course - it just that usually you'd > expect the whitespace to be ignored automatically. > > > > However, thanks so much for providing this module - It's the only one > which works with a) windows b) with gmail and c) with attachments - > very useful indeed! > > Please publicize the module more widely - I see many people on the > blogs struggling with email in perl. > > Mike