You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-11-28 01:28:32

RNAdmin
Member
Registered: 2023-11-27
Posts: 2

GLPI - 10.0.10 - Mail receiver - PHP undefined variable $data

Hi all,

I have (2) issues in GLPI that I believe are related. We ingest most tickets through email and a minority through the Service Catalog (form) offerings.

- If we receive an email initiating a NEW ticket, the mail receiver will process the ticket, but the ticket's body is wholly omitted. Rules that are setup fire correctly, and I have attempted to disable the rules and adjust all of the attachment and creation sizes for email, and the problem remains unchanged. The subject carriers into the ticket, and the requester is set accurately, but absolutely no details from the ticket's body.

- If we receive an email responding to an EXISTING ticket, the email remains in the inbox and is never collected by the email receiver. Checking the logs, it does, in fact, see the email and also reports an error on the email it sees. No action is taken.

When checking the php-errors.log file in GLPI I am seeing the following information --


[2023-11-27 23:08:02] glpiphplog.WARNING:   *** PHP Warning (2): Undefined variable $data in /var/www/html/glpi/vendor/laminas/laminas-mail/src/Protocol/Imap.php at line 598
  Backtrace :
  ...r/laminas/laminas-mail/src/Storage/Imap.php:162 Laminas\Mail\Protocol\Imap->fetch()
  ...r/laminas/laminas-mail/src/Storage/Part.php:175 Laminas\Mail\Storage\Imap->getRawContent()
  ...r/laminas/laminas-mail/src/Storage/Part.php:249 Laminas\Mail\Storage\Part->cacheContent()
  ...r/laminas/laminas-mail/src/Storage/Part.php:471 Laminas\Mail\Storage\Part->countParts()
  src/MailCollector.php:1600                         Laminas\Mail\Storage\Part->rewind()
  src/MailCollector.php:1771                         MailCollector->getRecursiveAttached()
  src/MailCollector.php:1075                         MailCollector->getAttached()
  src/MailCollector.php:814                          MailCollector->buildTicket()
  src/MailCollector.php:1913                         MailCollector->collect()
  src/CronTask.php:1018                              MailCollector::cronMailgate()
  front/cron.php:84                                  CronTask::launch()

I am happy to provide additional logs, etc. Wasn't sure if this problem has been encountered before?

Thanks!

Offline

#2 2023-11-28 17:19:38

RNAdmin
Member
Registered: 2023-11-27
Posts: 2

Re: GLPI - 10.0.10 - Mail receiver - PHP undefined variable $data

Just an FYI - I have resolved this issue by swapping the GLPI email protocol from IMAP to POP.

I will drop this in GitHub in case it is in fact, a bug. Thanks!

Last edited by RNAdmin (2023-11-28 17:19:51)

Offline

Board footer

Powered by FluxBB