I have the same problem with inline image not showing in the ticket. But it works if i manually run the collector the inline image show up perfectly, but if i let the cron (automatic action) to collect the email, at that time i get no inline image in my tickets.
Only way i got it fixed was a combination of code modification that MarcW mentionned in this post plus another modification from SoluNeXT found here https://github.com/glpi-project/glpi/issues/2869
tks guys
]]> // Replace tags by image in textarea
if ($addLink) {
$out .= '<a href="/glpi/front/document.send.php?docid='.$id.
'" target="_blank"><img alt="'.$image['tag'].
'" height="'.$height.'" width="'.$width.
'" src="/glpi/front/document.send.php?docid='.$id.'" /></a>';
} else {
$out .= '<img alt="'.$image['tag'].
'" height="'.$height.'" width="'.$width.
'" src="/glpi/front/document.send.php?docid='.$id.'" />';
}
source (in french)
]]>Note: I installed GLPI under /srv/glpi so images URL is something like http://server/srv/glpi/... so I needed to remove th /srv/ part
alias /glpi/ /srv/glpi/
<Location /srv>
RewriteEngine On
RewriteRule ^(.*)/srv/glpi/(.*) /glpi/$2 [R]
</Location>
<Location /glpi>
..
..
</Location>
I have the same problem on GLPI 9.2.1.
Often the problem is using a ticket created by receiver.
Thanks in advanced for your help.
]]>The inline images are using a incorrect link.
Example:
Image in mail.
In Ticket appears the cid ID ( 0973ae8c-d9d62df8-5a15f48d749041.31281015 ). Ticket url: http://glpi.xxxx.xxxxx/front/ticket.form.php?id=5928
When checking URL, it shows: http://glpi.xxxx.xxxxx/var/www/html/glp … docid=1684, and don't work.
NOTE: /var/www/html/glpi/ is the installation path!
If i correct the link to http://glpi.xxxx.xxxxx/front/document.s … docid=1684, image appears correctly.
Where is my problem?
Thanks!
EC
]]>