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!
Using Return-Path instead Reply-To when receive email
Moderator: crythias
-
- 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
Really no one can tell me which .pl do the email parsing and put this on variables to be used afterwards?
Re: Using Return-Path instead Reply-To when receive email
you are using a very old version of OTRS (actual version is 3.3. 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
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- 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
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:
As you see, a lot of things has been customized.
If it posible to using that, only remove the sanitized and using
Change the $GetParam{From} for to the value of $GetParam{'Reply-To'}
It seems yes, isn't ?
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'};
}
If it posible to using that, only remove the sanitized and using
Code: Select all
(/.*\@.*\/)
It seems yes, isn't ?
Re: Using Return-Path instead Reply-To when receive email
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- 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
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?
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
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