1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# reject follow up accounted
elsif ( $FollowUpPossible =~ /reject/i && $State{TypeName} =~ /^accounted/i ) {
$Self->{LogObject}->Log(
Priority => 'info',
Message => "Follow up for [$Tn] but follow up not possible. Follow up rejected."
);
# send reject mail && and add article to ticket
my $Run = $Self->{Reject}->Run(
TicketID => $TicketID,
InmailUserID => $Self->{PostmasterUserID},
GetParam => $GetParam,
Lock => $Lock,
Tn => $Tn,
Comment => 'Follow up rejected.',
AutoResponseType => 'auto reject',
);
if ( !$Run ) {
return;
}
@Return = ( 4, $TicketID );
}
1
2
3
4
5
6
7
8
9
10
11
12
13
# set state accounted
my $State = $Self->{ConfigObject}->Get('PostmasterFollowUpState') || 'accounted';
if (
$Ticket{StateType} =~ /^accounted/
&& $Self->{ConfigObject}->Get('PostmasterFollowUpStateAccounted')
)
{
$State = $Self->{ConfigObject}->Get('PostmasterFollowUpStateAccounted');
}
if ( $GetParam{'X-OTRS-FollowUp-State'} ) {
$State = $GetParam{'X-OTRS-FollowUp-State'};
}