Wiki » History » Version 11

tomolimo, 01/30/2014 01:26 PM

1 1 tomolimo
h1. Ticket Cleaner
2 1 tomolimo
3 1 tomolimo
This plugins provides several features to clean Tickets and Followups at creation time and update time.
4 1 tomolimo
It gives the possibility to filter texts at Ticket (or Followup) creation.
5 1 tomolimo
And to exclude pictures from Ticket (or Followup) creation (when done via email receiver).
6 1 tomolimo
7 1 tomolimo
h2. Installation
8 1 tomolimo
9 1 tomolimo
> Copy the folder 'ticketcleaner' into the 'plugins' folder of GLPI installation. Like for any other GLPI plugins.
10 11 tomolimo
Don't forget to install it and enable it from GLPI Plugins setup page.
11 1 tomolimo
12 1 tomolimo
h3. For Text cleaning
13 1 tomolimo
14 1 tomolimo
> Filters must be defined directly into the database: there is no web page interface for this (not yet :)).
15 1 tomolimo
Use your preferred db query tool to edit content of 'glpi_plugin_ticketcleaner_filters' table.
16 11 tomolimo
If you do not want to use Text cleaning, don't leave this table empty, you must at least input one filter.
17 7 tomolimo
See this section to learn how to create [[Text Filters]].
18 9 tomolimo
Special patch to apply when using eMail server in HTML mode: patch for [[HTML clean()]] function.
19 1 tomolimo
20 1 tomolimo
h3. For Image cleaning
21 1 tomolimo
22 6 tomolimo
> Image cleaning mechanism uses a sub-folder inside 'ticketcleaner' folder. This sub-folder is named 'pictures'.
23 1 tomolimo
You will store into this folder all picture files to be excluded from Tickets.
24 6 tomolimo
Then when needed, the plugin will load 'on the fly' the Sha1 signatures of the picture files from this 'pictures' folder into the database.
25 6 tomolimo
The plugin will use these Sha1 signatures to exclude any images attached to (or embedded into) emails sent to GLPI.
26 6 tomolimo
For each picture file (excluded or not) attached to (or embedded into) emails a notice will be logged into the 'TicketCleaner' log files. This notice will indicate which file is excluded or not.
27 1 tomolimo
*Beware that this log file may grow and may become large enough to prevent correct running of GLPI: then check the size of this file on a regular time basis in order to prevent any stop of GLPI.*