Comment 12 for bug 515386

Revision history for this message
In , Saivann Carignan (oxmosys) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.9 Safari/532.9
Build Identifier: 3.0.2

Thunderbird 3.0.2 has two important regressions in the way it handle arguments of -compose command line option compared to Thunderbird 2.0 :

This used to work perfectly with thunderbird 2.0 :
thunderbird -compose "attachment='file:///scan%2D0.pdf,'"

With Thunderbird 3.0.1, It shows a error message that say : "An error occurred while creating a message compose window. Please try again." This is caused by the virgule at the end of the attachment.

If we remove this virgule, thunderbird hit another regression, the attachment filename is not renamed to scan-0.pdf, therefore thunderbird is not able to find scan%2D0.pdf .

That does not make sense, because URLencoded filenames is necessary here to seperate each file correctly.

xdg-email recently included a fix to add Thunderbird compatibility for Linux operating systems, because Thunderbird does not support attachments with mailto. These two regressions unfortunately break this recent fix, and prevent all applications to send email attachments when Thunderbird 3 is set as the default email client on Linux.

Summary :
1. Thunderbird show a error msg when there is a virgule at the end of last attachment filename.
2. Thunderbird does not convert URLEncoded filenames to normal strings, leading it to think that the file does not exist anymore.

This has been tested under Windows XP as well.

Reproducible: Always

Steps to Reproduce:
1. Create a file named scan-0.pdf at the root of your filesystem (/)
2. Attach the file in thunderbird via command line : thunderbird -compose "attachment='file:///scan%2D0.pdf,'" (Linux) or thunderbird.exe -compose "attachment='file://C:/scan%2D0.pdf,'" (Windows).
Actual Results:
Thunderbird ends on a error message saying "An error occurred while creating a message compose window. Please try again." because of the virgule. And without the virgule, it attach scan%2D0.pdf to the message.

Expected Results:
Thunderbird should not report any error and simply ignore the virgule, as it did in the past, and it should convert the filename to scan-0.pdf.

This issue is also tracked in launchpad bug :
https://bugs.launchpad.net/simple-scan/+bug/515386