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

[9.4.2] eml files are not attached to the ticket by mailgate #5913

Closed
schoubi opened this issue May 16, 2019 · 4 comments
Closed

[9.4.2] eml files are not attached to the ticket by mailgate #5913

schoubi opened this issue May 16, 2019 · 4 comments
Assignees
Labels
Milestone

Comments

@schoubi
Copy link

schoubi commented May 16, 2019

Describe the bug

We use mailgate to create ticket from mail adressed to the support team.

Sometimes, we received forwarded mail as attached file (.eml, type message/rfc822).

So we added two types of documents:

  • "Mime message" with type mime "message/rfc822"
  • "Forward message" with extension "eml"

But we never see the attached file. GLPI worked as if the file isn't exist at all. The ticket contain only the mail body, but no file is attached to the ticket.

If i directly upload the file.eml in the ticket, it is correctly attached and detected as "message/rfc822"

To reproduce

Steps to reproduce the behavior:

  1. Add two types of documents in GLPI:
  • "Mime message" with type mime "message/rfc822"
  • "Forward message" with extension "eml"
  1. Configure your mail client to forward mail as attached files (.eml)
  2. Forward a mail to GLPI
  3. The ticket is correctly created but no file attached.

Expected behavior

Eml must be attached to the ticket the same way it is when we upload it directly.

@bigben386
Copy link

I just came across this issue as well. I was trying to setup the knowbe4 phish alert program for my users but noticed none of the attachments are available in glpi. Has anyone come up with a solution for this?

@cedric-anne
Copy link
Member

Hi,

Can you provide an export (in eml format) of your email that cause the problem ?
Can you also check in logs if you see somthing related to this ?

Regards

@bigben386
Copy link

There is an error in php-errors. Not sure if it is related [2020-07-07 13:49:02] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/glpi/inc/toolb$ *** PHP Notice(8): Undefined variable: message Backtrace : inc/mailcollector.class.php:1649 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:684 MailCollector->buildTicket() inc/mailcollector.class.php:1799 MailCollector->collect() : MailCollector::cronMailgate() inc/crontask.class.php:829 call_user_func() front/cron.php:61 CronTask::launch() {"user":"@ocs-ng"}

No errors in mail.log.

I added .eml to the file types list but it made no difference

These eml files are from gmail forward as attachment.

@cedric-anne
Copy link
Member

Hi,

I just made a test with GLPI 9.5 (with #7652 fix), and, after adding eml as a document type (see image below), mailgate crontask correctly create a new ticket with an attached eml document.

image

image

So I close this issue as it is already fixed in current supported version (GLPI 9.5).

Regards

@cedric-anne cedric-anne added this to the 9.5.1 milestone Jul 13, 2020
@cedric-anne cedric-anne self-assigned this Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants