Using Return-Path instead Reply-To when receive email

Moderator: crythias

Post Reply
IXLabs
Znuny newbie
Posts: 43
Joined: 26 Mar 2013, 16:32
Znuny Version: 3.2.2
Real Name: Nicolas Unterberger
Company: IXLabs

Using Return-Path instead Reply-To when receive email

Post by IXLabs »

Hi.

I need to change the behaviour the PostMasterFilter works.
From now, when OTRS receive a ticket, it use the email address of the email field: Reply-To, but it doesn't work for us due to hard custom development on the backend that send the tickets, so we need to use the Return-Path field of the email.

How i can do it? need i to write a postmaster custom filter or it can be done on otrs?

OTRS version in that case 2.4.10.

Thanks!
IXLabs
Znuny newbie
Posts: 43
Joined: 26 Mar 2013, 16:32
Znuny Version: 3.2.2
Real Name: Nicolas Unterberger
Company: IXLabs

Re: Using Return-Path instead Reply-To when receive email

Post by IXLabs »

No Ideas?
IXLabs
Znuny newbie
Posts: 43
Joined: 26 Mar 2013, 16:32
Znuny Version: 3.2.2
Real Name: Nicolas Unterberger
Company: IXLabs

Re: Using Return-Path instead Reply-To when receive email

Post by IXLabs »

Really no one can tell me which .pl do the email parsing and put this on variables to be used afterwards?
:shock:
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Using Return-Path instead Reply-To when receive email

Post by jojo »

you are using a very old version of OTRS (actual version is 3.3.8) which lacks any support and updates.

grep over the sources should help. Changing PERL files requires some knowledge on developing PERL! You might break your full system
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
IXLabs
Znuny newbie
Posts: 43
Joined: 26 Mar 2013, 16:32
Znuny Version: 3.2.2
Real Name: Nicolas Unterberger
Company: IXLabs

Re: Using Return-Path instead Reply-To when receive email

Post by IXLabs »

I know im using a very old version, but in fact is not my call decide about this.
The problem is, this otrs has a lot of customization in the backend and yes, i know perl and yes i have 2 system to try, one in production and the other one for development.

I found a piece of code in PostMaster.pm:

Code: Select all

 # setting reply-to mailadress as from in case of SANITIZED mailadress
    if ( $GetParam{From} =~ /.*\@SANITIZED\.com.*/ ) {
        $GetParam{From} = $GetParam{'Reply-To'};
    }

As you see, a lot of things has been customized.
If it posible to using that, only remove the sanitized and using

Code: Select all

(/.*\@.*\/)
Change the $GetParam{From} for to the value of $GetParam{'Reply-To'}

It seems yes, isn't ?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Using Return-Path instead Reply-To when receive email

Post by jojo »

PostMaster.pm is correct...
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Using Return-Path instead Reply-To when receive email

Post by crythias »

Look at your question.
Look at your code sample.

What do you think the most obvious answer could be?
What would happen if you tried it?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Post Reply