You are not logged in.
Pages: 1
Hello, I setup an email receiver with exchange 2010 (imap) and that is all working fine. The only issue I see is we keep getting the same errors in php-errors.log
[2019-10-17 14:21:01] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/html/glpi/inc/toolbox.class.php line 658
*** PHP Notice(8): Undefined property: stdClass::$bytes
Backtrace :
inc/mailcollector.class.php:1628
inc/mailcollector.class.php:1546 MailCollector->getRecursiveAttached()
inc/mailcollector.class.php:1684 MailCollector->getRecursiveAttached()
inc/mailcollector.class.php:857 MailCollector->getAttached()
inc/mailcollector.class.php:679 MailCollector->buildTicket()
inc/mailcollector.class.php:1795 MailCollector->collect()
inc/crontask.class.php:829 MailCollector::cronMailgate()
front/cron.php:83 CronTask::launch()
If I change the receiver option "Maximum size of each file imported by the mails receiver" to no import then these errors go away.
The strange thing to me is if I email with a screen shot it still gets imported into the ticket without issue.
Any idea why this error keeps flooding the logs? Thanks
Offline
Did anyone find a solution to this? We are experiencing the same issue, the .msg type attachement is not imported to ticket, the error we get:
Invalid attached file - "Mail subject" (MESSAGE/RFC822)
Although we have .msg defined in document types.
The strange thing is, that one user was able to send the mail with .msg attachement with no problem today, that is like the first example that it is acutally working?
I've been searching through mail-debug.log and the server found the file as:
Content Type: application/octet-stream; name="Subject.msg"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Subject.msg"
For other attachement that were not imported in the sql-error.log we found this error:
[2022-07-14 09:03:22] glpisqllog.ERROR: DBmysql::query() in /glpi/src/DBmysql.php line 370
*** MySQL query error:
SQL: INSERT INTO `glpi_documenttypes` (`name`, `comment`, `icon`, `is_uploadable`, `ext`, `mime`, `date_creation`, `date_mod`) VALUES ('MESSAGE', '', '0', '0', 'msg', 'message/rfc822', '2022-07-14 09:03:22', '2022-07-14 09:03:22')
Error: Duplicate entry 'msg' for key 'unicity'
Backtrace :
src/DBmysql.php:1312
src/CommonDBTM.php:705 DBmysql->insert()
src/CommonDBTM.php:1304 CommonDBTM->addToDB()
front/dropdown.common.form.php:62 CommonDBTM->add()
front/documenttype.form.php:39 include()
{"usr":"1@glpi-test"}
Also the error from php-error.log:
[2022-07-19 12:54:02] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /glpi/inc/toolbox.class.php line 683
*** PHP Notice(8): Undefined property: stdClass::$bytes
Backtrace :
inc/mailcollector.class.php:1632
inc/mailcollector.class.php:1550 MailCollector->getRecursiveAttached()
inc/mailcollector.class.php:1688 MailCollector->getRecursiveAttached()
inc/mailcollector.class.php:861 MailCollector->getAttached()
inc/mailcollector.class.php:683 MailCollector->buildTicket()
inc/mailcollector.class.php:1799 MailCollector->collect()
inc/crontask.class.php:829 MailCollector::cronMailgate()
front/cron.php:83 CronTask::launch()
{"usr":"@glpi"}
Any help would be appreciated
Offline
any news maybe on this issue? Will it be sorted out with the latest update of Glpi v10? I really have no idea left where to look.
You can insert the attachement manually by adding it as the document, but won't get imported via mailcollector.
Thank you.
Offline
Pages: 1