Remove [Ticket#] from the subject

Hi, I modified the AgentCompose.pm file as documented below. What I did appears to work, however, I do not know Perl and was wondering if there are any side effects that I should be aware of. Are the modifications I made correct? I made the following modifications in: /opt/otrs/Kernel/Modules/AgentCompose.pm 1. In sub SendEmail I made the following modifications: my $TicketHook = $Self->{ConfigObject}->Get('TicketHook') || ''; $GetParam{Subject} =~ s/^..: //; $GetParam{Subject} =~ s/\[$TicketHook: $Tn\] //g; $GetParam{Subject} =~ s/^..: //; $GetParam{Subject} =~ s/^(.{45}).*$/$1 [...]/; # Akbar S. Ahmed - Removed TicketHook from Subject # Original line is commented out. Modified line follows. #$GetParam{Subject} = "[$TicketHook: $Tn] ".$GetParam{Subject}; $GetParam{Subject} = "Re: " .$GetParam{Subject}; 2. In sub Form I made the following modifications: my $TicketHook = $Self->{ConfigObject}->Get('TicketHook') || ''; $Data{Subject} =~ s/^..: //; $Data{Subject} =~ s/\[$TicketHook: $Ticket{TicketNumber}\] //g; $Data{Subject} =~ s/^..: //; $Data{Subject} =~ s/^(.{45}).*$/$1 [...]/; # Akbar S. Ahmed - Removed TicketHook from Subject # Original line is commented out. Modified line follows. #$Data{Subject} = "[$TicketHook: $Ticket{TicketNumber}] Re: " . $Data{Subject}; $Data{Subject} = "Re: " . $Data{Subject}; Thanks in advance, Akbar

Akbar S. Ahmed wrote:
Hi,
I modified the AgentCompose.pm file as documented below. What I did appears to work, however, I do not know Perl and was wondering if there are any side effects that I should be aware of.
The side effect will be that OTRS will have no way to relate reply to that message with the ticket - so when client replies (if he does so using e-mail) new ticket will be created. All would be much simpler if mail clients would know of some feature like session cookies or reply-variables, but there are none, as far as I know. So, the best advice in this case is to leave the lines exactly as they were. Regards, Damir
participants (2)
-
Akbar S. Ahmed
-
Damir Dzeko