Closed logique1 closed 2 years ago
When the filename of the attachment has an illegal character it will save a zero size file with a space at the end and that file cannot be easily removed. For example: Attached file name is Invoice: invoice.pdf it will save a file named "invoice " Suggest code to change illegal character to a - (dash)
@logique1
I am currently working on a fix, just don't know how to generate an attachment with an illegal filename, can you send me one? Forward it to thunderbirddaily@gmail.com please!
If you could prefix the subject line with [filtaquilla] that would be helpful!
PS: if you can add an attachment with diacritics in the file name this may be helpful as well. I am using my routine _sanitizeName()
that is also used when saving mails as files. It does replace diacritics and other special characters with similar sounding /looking characters, and also replaces illegal characters with -
.
(untested prerelease version, can be installed by downloading the zip file and dragging it into Thunderbird Add-ons Manager without unpacking contents).
The exported file name was missing "." here is a corrected version.
problems - when I try to enumerate the attachments using MimeMessage.allAttachments it seems to omit attachments of type "eml" and only saves the pdf one.
Don't forget to download zip file and drag into Thunderbird Add-ons Manager to install. Also you must restart Thunderbird (old filter actions cannot be removed, so only restarting will add the new version)
Included in release 3.6, published on 17/10.
When the filename of the attachment has an illegal character it will save a zero size file with a space at the end and that file cannot be easily removed. For example: Attached file name is "Invoice: invoice.pdf" it will save a file named "invoice " Suggest code to change illegal character to a - (dash)