-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty ticket description when character encoding is not UTF-8 #15389
Comments
Hi, Please attach the source of the email into an |
Can't upload eml, i paste here the content of eml file Return-path: server@example.com GLPI blank email test |
Rename to txt or zip it. We need EML file, not its content. |
No feedback from a while, closing. |
Code of Conduct
Is there an existing issue for this?
Version
10.0.9
Bug description
If mail encoding is UTF8, GLPI creates a blank ticket. The subject is ok, but the description is empty
Relevant log output
No response
Page URL
No response
Steps To reproduce
Send an email from CentOS7 to GLPI.
mail version: 12.5 7/5/10
Your GLPI setup information
Operating system: Linux glpi.example.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
PHP 7.4.33 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apcu, bz2, calendar,
ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli,
mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, session, soap, sockets, sodium, sqlite3, standard, tokenizer, xml, xmlreader,
xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="50" memory_limit="128M" post_max_size="100M" safe_mode="" session.save_handler="files"
upload_max_filesize="100M"
Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 mod_perl/2.0.11 Perl/v5.16.3 ()
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.188
Server Software: MariaDB Server
Server Version: 10.5.21-MariaDB
Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Parameters: gpli@127.0.0.1/gpli
Host info: 127.0.0.1 via TCP/IP
Anything else?
We have modified the src/MailCollectro.php file, and now it works in some cases. In other Cases not, but i don't know why.
1821
1822 if (strlen($content) < 2 ) { $content = utf8_encode($part); }
1823 // $cron_msg1=print_r($content, true);
1824 $timestemp_message=date("Y/m/d H:i:s");
1825 $cron_msg1="
1826
1827 $timestemp_message " . "
1828 original: " . utf8_encode($part) . "
1829 modified: " . $content . "
1830 ";
1831
1832 $myfile = fopen("/srv/www/glpi/files/_log/mailgate_cron.log", "a") or die("Unable to open file!");
1833 fwrite($myfile, $cron_msg1);
1834 fclose($myfile);
1835
1836 // ** URES MAIL VEGE **
1837
1838 return $content;
1839 }
The text was updated successfully, but these errors were encountered: