tomolimo / ticketcleaner

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

Ticket Cleaner - LetSignIT signatures #22

Closed YoannRou closed 9 months ago

YoannRou commented 3 years ago

Hello,

We use LetSign IT to automatically create signatures and advertising banner in our emails. They are added to Outlook with an app or SMTP connector from a smartphone. It's very userful but for ticket's collected by mail it took a lot of space for nothing.

So far I have managed to remove all of the text but not the images embedded in the signature or the ad banner. They are uploaded to LetSignIt's website and not integrated in the email, is that the reason?

I'm not very comfortable with RegEx and other encodings things. Do you have a solution or any idea to help me?

Thanks a lot,

Our config:

Debian 10 Server Version: 10.3.22-MariaDB-0+deb10u1 GLPI 9.4.5 Ticket Cleaner 2.5.3

tomolimo commented 3 years ago

Hello @YoannRou

Could you post in English? Could you also post your GLPI configuration?

Thank you Regards, Tomolimo

tomolimo commented 3 years ago

Hello @YoannRou

Could you try a first regex? @<a href="https://cloud\.letsignit\.com/.*</a>@ This one should delete the images. Could you post result?

And then I'll propose you another one to delete the disclaimer text.

Thank you Regards, Tomolimo

YoannRou commented 3 years ago

Thank you for your quick answer ! I tried the RegEx and it's better than evertything i tried but not perfect. In the description a lot of things are deleted but in history images are still uploded.

image

tomolimo commented 3 years ago

Hello @YoannRou

In fact the pictures are not in the HTML part of the email, but they are attached files in the email, this implies that the ticket description filters cannot delete them. But there is another way to delete pictures: you have to place them in the /plugins/ticketcleaner/pictures/ folder of the plugins. This folder must contain the pictures that you want to exclude: copy/paste them into the folder will exclude them on the fly. And if you need to delete the already pictures from the tickets, then there is a script to do that in: /plugins/ticketcleaner/ purgepictures.php.

Thank you, Regards, Tomolimo

YoannRou commented 3 years ago

Tomolimo,

Ok I will try this. Thanks again. Do you have any idea wich RegEx I have to create to delete the rest of the text inside the HTML board and the board itself ?

Regards,

tomolimo commented 9 months ago

Hello @YoannRou I closed this issue as there is no news, but feel free to reopen if you need to post news. Thank you, Regards, Tomolimo