How to strip old reply data from incoming email

Moderator: crythias

Locked
MarkCline
Znuny newbie
Posts: 3
Joined: 06 Jan 2017, 16:40
Znuny Version: 5.0.15
Real Name: Mark Cline
Company: Ameex Technologies

How to strip old reply data from incoming email

Post by MarkCline »

Hello,

I am trying to strip old reply data from my client responses on incoming email.

I have added the following string to top of all outgoing emails: ===== WRITE YOUR REPLY ABOVE THIS LINE =====

I would like to strip everything from the string to the bottom of the email.

I have tried to use the postmaster filters, but it doesn't look like I can do this out of the box.

Can someone recommend the best approach for me to do this.

Thanks
Mark
root
Administrator
Posts: 4232
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: How to strip old reply data from incoming email

Post by root »

AFAIK modification of the body needs some custom development.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to strip old reply data from incoming email

Post by reneeb »

This should be a doable with a simple postmaster filter module...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
MarkCline
Znuny newbie
Posts: 3
Joined: 06 Jan 2017, 16:40
Znuny Version: 5.0.15
Real Name: Mark Cline
Company: Ameex Technologies

Re: How to strip old reply data from incoming email

Post by MarkCline »

Hello Reneeb,

When you say a simple postmaster filter, do you mean using the GUI interface, or creating a new filter module through code?

I have tried using the admin interface to create a new postmaster filter for stripping the copy with a regex statement, but it doesn't appear that you can override the body of the email.

If I need to create a new filter programmatically, can you point me to some examples or which files I would need to create/modify.

Thanks
Mark
Charmacas
Znuny advanced
Posts: 103
Joined: 18 Jan 2016, 10:27
Znuny Version: 5.0.26 on Debian 8

Re: How to strip old reply data from incoming email

Post by Charmacas »

This would also be an interesting module for us. Because OTRS documents just everything it is not necessary to include all the replies inside one article. Good idea!
wurzel
Znuny guru
Posts: 3270
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: How to strip old reply data from incoming email

Post by wurzel »

Hi,

for me this would be a VERY useful module! The Fullquoting is soooo bad.

Florian
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Locked