You are not logged in.
Pages: 1
Hi!
I am trying to setup glpi to fetch mails and to create tickets.
Is there any possibility to parse the body of the mail and to set the parameters of the ticket?
The easiest way could be, to write parameters in the body like:
[asset]SystemXY[/asset]
[priority]4[/priority]
[text]This is the description of my Problem[/text]
.....
Did someone of you try something like that?
Best wishes,
Stril
Offline
In glpi 0.78 you can make your own notification
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Hello yllen,
I do not need notifications. My users cannot access glpi "directly". So, there is a mailgenerator, where they can generate a ticket "remote".
I just need a way to read the mailbody and to assign the right priority, asset, etc according to its mail body.
Stril
Offline
Hi!
I found a solution:
If I parse the body in ./glpi/inc/mailcollector.class.php, I can set the parameters of the ticket:
e.g.:
$searchstring= "[PRIORITY]";
if (strlen(strstr($body,$searchstring))>0) {
$tkt['priority'] = "5";
$tkt['use_email_notification'] = 1;
}
else
{
$tkt['priority'] = "1";
$tkt['use_email_notification'] = 0;
}
Best wishes,
Stril
Offline
Pages: 1