I have otrs 3.3.10 installed with the KIX4OTRS addon/plugin.
At the moment my System is setup to assign a ticket to a Customer even if he sent the ticket with a secondary email (alternative email)
I did this with a few lines in the Ldap.pm in KIX4OTRS/Kernel/System/CustomerUser/Ldap.pm:
Code: Select all
my $meinemail = $Param{PostMasterSearch};
[...]
elsif ( $Param{PostMasterSearch} ) {
if ( $Self->{CustomerUserMap}->{CustomerUserPostMasterSearchFields} ) {
$Filter = '(|';
for my $Field ( @{ $Self->{CustomerUserMap}->{CustomerUserPostMasterSearchFields} } ) {
## REPLACED BY Me $Filter .= "($Field=$Param{PostMasterSearch})";
if ( $Field eq "mail" || $Field eq "mailAlternateAddress" ) {
$meinemail =~ s/\@subdomain\.part\-domain\.com$/\@part\-domain\.com/;
}
##END REPLACE
$Filter.= "($Field=$mymail)";
}
$Filter .= ')';
}
}
My Problem is firstly: The Field in Ldap is an array and otrs is only reading the first entry.
and: if I send from a secondary/third email wich is an alias of my primary one, it adds the primary email into the cc field.
I'm not sure if I explained myself very good. i'm sorry. If you can help I will try to explain it better if you don't understand.
I'm trying to to something like this but with multiple emails as alternative emails: https://www.mail-archive.com/otrs@otrs. ... 31378.html
thanks for reading
regards