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

Mail attachments import failure #3121

Closed
ferdmanp opened this issue Nov 7, 2017 · 1 comment
Closed

Mail attachments import failure #3121

ferdmanp opened this issue Nov 7, 2017 · 1 comment

Comments

@ferdmanp
Copy link

ferdmanp commented Nov 7, 2017

After recieving e-mail WITH attachment, GLPI creates ticket WITHOUT attachment.
php-errors.log contains following message:

PHP Notice(8): Undefined variable: mid
Backtrace :
inc/mailcollector.class.php:1412
inc/mailcollector.class.php:1413 MailCollector->getRecursiveAttached()
inc/mailcollector.class.php:1545 MailCollector->getRecursiveAttached()
inc/mailcollector.class.php:704 MailCollector->getAttached()
inc/mailcollector.class.php:540 MailCollector->buildTicket()
inc/mailcollector.class.php:1647 MailCollector->collect()
: MailCollector::cronMailgate()
inc/crontask.class.php:832 call_user_func()
front/cron.php:87 CronTask::launch()

It seems like copy-paste issue. I've made some changes in /inc/mailcollector.class.php, and it works now.

Changes: line 1412
was:
$this->getRecursiveAttached($mid, $path, $maxsize, $sub_structure, // ($part ? $part.".".($index+1) : ($index+1)));
now
$this->getRecursiveAttached($uid, $path, $maxsize, $sub_structure, ($part ? $part.".".($index+1) : ($index+1)));

@trasher
Copy link
Contributor

trasher commented Nov 7, 2017

Duplicates #2841

@trasher trasher closed this as completed Nov 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants