cannot disable assignment of customer user from incoming email

Moderator: crythias

Post Reply
rodolfor
Znuny newbie
Posts: 89
Joined: 11 Jun 2020, 14:56
Znuny Version: 6.0.27
Real Name: Rodolfo Rughi
Company: none

cannot disable assignment of customer user from incoming email

Post by rodolfor »

Hi.
In 6.0.1 I need to disable the automatic assignment of customer user from incoming email when email is assigned to an user.
I tried to disable AutoAssignCustomerIDForUnknownCustomers with no luck.
In newticket.pm I see:

Code: Select all

    # if there is no customer id found!
    if (
        !$GetParam{'X-OTRS-CustomerNo'}
        && $ConfigObject->Get('PostMaster::NewTicket::AutoAssignCustomerIDForUnknownCustomers')
        )
    {
        $GetParam{'X-OTRS-CustomerNo'} = $GetParam{SenderEmailAddress};
    }

    # if there is no customer user found!
    if ( !$GetParam{'X-OTRS-CustomerUser'} ) {
        $GetParam{'X-OTRS-CustomerUser'} = $GetParam{SenderEmailAddress};
    }
and seems it assign in all cases 'X-OTRS-CustomerUser'
Is it correct?
How can I disable this assignment?

Thanks

Rodolfo
rodolfor
Znuny newbie
Posts: 89
Joined: 11 Jun 2020, 14:56
Znuny Version: 6.0.27
Real Name: Rodolfo Rughi
Company: none

Re: cannot disable assignment of customer user from incoming email

Post by rodolfor »

I have fond a solution: force empty string for CustomerId and CustomerUser.
Is it optimal?
Thanks!
opt_otrs_Kernel_System_PostMaster.png
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: cannot disable assignment of customer user from incoming email

Post by root »

Hi,

NEVER change an original file. Copy the file (including the path) to the Custom folder an apply your change there.

- Roy
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 ?
Post Reply