Associating a group with a CustomerID?

Is it possible to have anyone with a given CustomerID automatically added to a group or queue? Thanks, Paul

I don't think there is such function. But it is a nice idea though. -----Original Message----- From: Paul Dale [mailto:paul.dale@gmail.com] Sent: 2008年11月9日 13:03 PM To: otrs@otrs.org Subject: [otrs] Associating a group with a CustomerID? Is it possible to have anyone with a given CustomerID automatically added to a group or queue? Thanks, Paul

I was able to put it in an external perl program which I can call in a
preprocessor before the mail goes into Otrs.
if ( my %Uid = $CommonObject{CustomerUserObject}->CustomerSearch(
PostMasterSearch => $Param{CustomerUserEmail} ) ) {
my @uids = keys %Uid;
my $user_login = pop(@uids);
my @CustomerIDs = $CommonObject{CustomerUserObject}->CustomerIDs(
User => $user_login
);
my $CustomerID = pop( @CustomerIDs )
# Add mail header X-OTRS-CustomerNo: $CustomerID
}
2008/11/9 Jie(Jack) Zhu
I don't think there is such function.
But it is a nice idea though.
-----Original Message----- From: Paul Dale [mailto:paul.dale@gmail.com] Sent: 2008年11月9日 13:03 PM To: otrs@otrs.org Subject: [otrs] Associating a group with a CustomerID?
Is it possible to have anyone with a given CustomerID automatically added to a group or queue?
Thanks,
Paul
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Just to finish this thread in case it's useful for anyone else.
I used formail -t -xFrom: to extract the from header, then looked that
up using the command below,
then used formail -A "X-OTRS-CustomerNo: %s" to set the header before
passing it to PostMaster.pl
...paul
2008/11/9 Paul Dale
I was able to put it in an external perl program which I can call in a preprocessor before the mail goes into Otrs.
if ( my %Uid = $CommonObject{CustomerUserObject}->CustomerSearch( PostMasterSearch => $Param{CustomerUserEmail} ) ) {
my @uids = keys %Uid; my $user_login = pop(@uids); my @CustomerIDs = $CommonObject{CustomerUserObject}->CustomerIDs( User => $user_login ); my $CustomerID = pop( @CustomerIDs ) # Add mail header X-OTRS-CustomerNo: $CustomerID }
2008/11/9 Jie(Jack) Zhu
: I don't think there is such function.
But it is a nice idea though.
-----Original Message----- From: Paul Dale [mailto:paul.dale@gmail.com] Sent: 2008年11月9日 13:03 PM To: otrs@otrs.org Subject: [otrs] Associating a group with a CustomerID?
Is it possible to have anyone with a given CustomerID automatically added to a group or queue?
Thanks,
Paul
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
participants (2)
-
Jie(Jack) Zhu
-
Paul Dale