You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-12-09 21:58:27

uknowx5
Member
Registered: 2016-03-04
Posts: 181

delete the signature on a ticket written by email

Hello,

When a user writes a ticket through email, the entire signature is attached even when writing a follow-up. this makes the tickets have a lot of unnecessary text

how can we avoid it?

Offline

#2 2018-12-19 21:22:20

uknowx5
Member
Registered: 2016-03-04
Posts: 181

Re: delete the signature on a ticket written by email

any help?

Offline

#3 2018-12-19 22:56:06

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: delete the signature on a ticket written by email

i believe ticket clean plugin can do this


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#4 2018-12-20 09:50:49

Jean-Christophe
Moderator
Registered: 2007-08-22
Posts: 734

Re: delete the signature on a ticket written by email

Indeed, but it is not compliant with GLPI 9.3 sad

Offline

#5 2019-01-03 17:01:02

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: delete the signature on a ticket written by email

You can backlist the signature in rules part


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

#6 2019-03-01 09:19:35

uknowx5
Member
Registered: 2016-03-04
Posts: 181

Re: delete the signature on a ticket written by email

yllen wrote:

You can backlist the signature in rules part


This solution is not practiced. Each email can have a different word in its signature and it would have to create rules for each word.

Offline

#7 2023-01-27 20:31:43

random389
Member
Registered: 2019-12-14
Posts: 29

Re: delete the signature on a ticket written by email

Hi,

I remove the thunderbird default message : "On 12/12/2012 randomuser wrote :" with pre_replace like this(and you can do this for signatures)"

In mailcollector.php, find the comment "clean mail content" around line 1215

Right after the comment "clean mail conten" : add  multiple variables like this with the "begin" or "end" signature characters in it.

$tkt['content'] = preg_replace('/' . preg_quote('On') .
                          '.*?' .
                          preg_quote('wrote:') . '/', '', $tkt['content']);
       }

Otherwise, you got the github.com/tomolimo/mailbehaviours but not you need it updated.

Kind regards,


Support GLPI with a donation : opencollective.com/glpi-project

Offline

Board footer

Powered by FluxBB