#36016 – Fetch Email Plug In - attachment with UTF8 characters

Posted in ‘Akeeba Ticket System’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 19 October 2021 23:59 CDT


Recently I migrated our ticket system from MaQma Helpdesk to Akeeba Ticket System. Retrieving emails is an important use case for me, but I am having some problems with it. I try to split my issues into separate tickets.

When I send an attachment with UTF8 characters in the filename via email to the ticket system, e.g. an image file, the mail is imported but not the attachment.

I did some research and I could imagine that the problem is the Joomla Media Manager not accepting the filename.

If I am correct, could the filename be converted to a random or an ASCII name in the plugin during import?

Many thanks in advance for your effort!


Custom Fields

Joomla! version (in x.y.z format) 3.10.2
PHP version (in x.y.z format) 7.4.23
Akeeba Ticket System version (x.y.z format) 4.0.4
Wednesday, 20 October 2021 01:53 CDT

The filename is converted to a random name. We do not store attachment with their original name. But that's AFTER we ask Joomla to do the pre–upload checks.

The problem is that the original filename check is part of the security check for uploading files to Joomla. This is implemented in Joomla's core code, namely Joomla\CMS\Helper\MediaHelper::canUpload, lines 224–229 in Joomla 3.10.2. If the filename contains any non–ASCII characters it is immediately rejected. 

Unfortunately, we cannot remove that check nor can we tell Joomla to NOT mind the filename — the original file name is required for the security checks which include double extension tests and content tests depending on file extension and file type. Removing this check completely would allow uploading unsafe content to your site.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native

🇬🇧English: excellent

🇫🇷French: basic

Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Wednesday, 20 October 2021 15:51 CDT

Thank you for your very good explanation.

Instead, I have to instruct my clients accordingly.





This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!