Skip to content
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

in GLPI 9.5.13. The emails that laminas/laminas-mail does not want to process are created by an "internal php script" #263

Open
GroGaloraGran opened this issue May 28, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@GroGaloraGran
Copy link

GroGaloraGran commented May 28, 2024

Bug Report

Q A
Version(s) x.y.z
GLPI 9.5.13

Summary

Hello!!!
We have the following problem: laminas/laminas-mail cannot process some emails and convert them into Requests in GLPI 9.5.13.
The emails that laminas/laminas-mail does not want to process are created by an "internal php script" (i.e. it has nothing to do with external sites and works only in the internal environment), which collects the necessary data and converts it into an email that is sent to Gmail, from which GLPI 9.5.13 is collected. The emails successfully reach the mailbox, but when trying to collect such emails, mailgate gives "errors" "false=1, blocked= N".When opening the logs "php-errors.log" we have the following text:

[Date Time] glpiphplog.CRITICAL:   *** Uncaught Exception Laminas\Mail\Header\Exception\InvalidArgumentException: Invalid header value detected in /var/www/html/vendor/laminas/laminas-mail/src/Header/GenericHeader.php at line 64
  Backtrace :
  vendor/laminas/laminas-mail/src/Headers.php:544    Laminas\Mail\Header\GenericHeader::splitHeaderLine()
  vendor/laminas/laminas-mail/src/Headers.php:284    Laminas\Mail\Headers->loadHeader()
  vendor/laminas/laminas-mail/src/Headers.php:105    Laminas\Mail\Headers->addHeaderLine()
  ...r/laminas/laminas-mail/src/Storage/Part.php:113 Laminas\Mail\Headers::fromString()
  ...laminas/laminas-mail/src/Storage/Message.php:53 Laminas\Mail\Storage\Part->__construct()
  ...or/laminas/laminas-mail/src/Storage/Pop3.php:64 Laminas\Mail\Storage\Message->__construct()
  ...aminas-mail/src/Storage/AbstractStorage.php:268 Laminas\Mail\Storage\Pop3->getMessage()
  inc/mailcollector.class.php:721                    Laminas\Mail\Storage\AbstractStorage->current()
  inc/mailcollector.class.php:1762                   MailCollector->collect()
  inc/crontask.class.php:943                         MailCollector::cronMailgate()
  front/cron.php:83                                  CronTask::launch()

Other emails are processed without any problems. Is it possible to configure so that emails from such a script are processed without problems? They are not spam and are sent only to the selected mail.
Thank you

@GroGaloraGran GroGaloraGran added the Bug Something isn't working label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant