tomolimo / ticketcleaner

Home for Ticket Cleaner GLPI plugin
8 stars 2 forks source link

GLPI 9.3 and 9.4 does not work with html #19

Closed victoria1984 closed 3 years ago

victoria1984 commented 3 years ago

Hello, I create a new issue for my problem. I'm using this plugin with glpi 9.3.2 and glpi 9.4.4 but when i make a regex for html, this filter don't work. I've proved the regex with the program named in the wiki and works ok.

In glpi, when i use the expression for txt, works ok, however i need use html expression. attachment Ticketcleaner.log and my regular expression.

/(\<p class=MsoNormal style='line-height:80%'>(.*)\<\/p>)/ TicketCleaner.log TicketCleaner.log TicketCleaner.log

Thanks.

tomolimo commented 3 years ago

Hello @victoria1984 All these log files have the same content: is it intend? Did you apply the debug filter procedure like describe here: Debug-filters? Thank you to provide me the log file like described in the Debug-filter section. Regards, Tomolimo

victoria1984 commented 3 years ago

I'm going to extract the log again and send to you.

Thank's

tomolimo commented 3 years ago

Don't forget to switch to Debug mode like explained in the wiki!

victoria1984 commented 3 years ago

Hi, I've activated de debug mode with super-admin profile and i sent an e-mail with the structure that i want remove. And this is the log that plugin made. TicketCleaner.log

tomolimo commented 3 years ago

Hello @victoria1984 I've checked the new log file you sent, but there is no filter debug in it! Could you do screen copies of the plugin filters in GLPI? Thank you, Regards, Tomolimo

tomolimo commented 3 years ago

Hello @victoria1984 image This screencopy of the log file you sent shows that the email has been integrated by the cron user, and not by the super-admin has it should be if you want to debug the filters, like explained here Thank you Regards, Tomolimo

victoria1984 commented 3 years ago

Hi, i sent you log file again. I've used super-admin profile, and i've runed the mailgate manually from the 'automatic actions' but the filter didn't work TicketCleaner.log Thank's

tomolimo commented 3 years ago

Hello @victoria1984 Please try with the following pattern: /(<p class="MsoNormal" style="line-height:80%">(.*)<\/p>)/ Thank you Regards, Tomolimo

tomolimo commented 3 years ago

Hello @victoria1984 I close this issue as I got no news from last post. Feel free to re-open if you want to post news. Thank you Regards, Tomolimo