
Hello, I use otrs 2.0.cvs with debian/sarge and i want to use my self defined autoresponse notifications. But this autoresponse doesnt work. The new mails come in the system with the /usr/share/otrs/bin/PostMasterPOP3.pl and this work fine. I search for the reason of this and found found a piece of code in the module Kernel/System/Ticket/Article.pm in the function ArticleCreate <snip> if ($Param{AutoResponseType} && $Param{OrigHeader}) { # get auto default responses my %Data = $Self->{AutoResponse}->AutoResponseGetByTypeQueueID( QueueID => $Ticket{QueueID}, Type => $Param{AutoResponseType}, ); my %OrigHeader = %{$Param{OrigHeader}}; if ($Data{Text} && $Data{Realname} && $Data{Address} && !$OrigHeader{'X-OTRS-Loop'}) { # check / loop protection! if (!$Self->{LoopProtectionObject}->Check(To => $OrigHeader{From})) { # add history row $Self->HistoryAdd( TicketID => $Param{TicketID}, HistoryType => 'LoopProtection', Name => "\%\%$OrigHeader{From}", CreateUserID => $Param{UserID}, ); # do log $Self->{LogObject}->Log( Priority => 'notice', Message => "Sent no '$Param{AutoResponseType}' for Ticket [". "$Ticket{TicketNumber}] ($OrigHeader{From}) " ); } else { # write log if ($Param{UserID} ne $Self->{ConfigObject}->Get('PostmasterUserID') || $Self->{LoopProtectionObject}->SendEmail(To => $OrigHeader{From})) { # get history type </snip> A part of the last "if" include the condition "$Param{UserID} ne $Self->{ConfigObject}->Get('PostmasterUserID')" I think, this is wrong. I remove this part of condition and test then autoreply function. This work fine. Where are the error? Is the code wrong or i think it wrong? Why should the postmaster not generate a autoreply? Bye Thomas

Hi, any response of that? Sorry, my english is bad :-) El Mar 26 Abr 2005 03:53, Thomas Kaminski escribió:
Hello,
I use otrs 2.0.cvs with debian/sarge and i want to use my self defined autoresponse notifications. But this autoresponse doesnt work.
The new mails come in the system with the /usr/share/otrs/bin/PostMasterPOP3.pl and this work fine.
I search for the reason of this and found found a piece of code in the module Kernel/System/Ticket/Article.pm
in the function ArticleCreate
<snip> if ($Param{AutoResponseType} && $Param{OrigHeader}) { # get auto default responses my %Data = $Self->{AutoResponse}->AutoResponseGetByTypeQueueID( QueueID => $Ticket{QueueID}, Type => $Param{AutoResponseType}, ); my %OrigHeader = %{$Param{OrigHeader}}; if ($Data{Text} && $Data{Realname} && $Data{Address} && !$OrigHeader{'X-OTRS-Loop'}) { # check / loop protection! if (!$Self->{LoopProtectionObject}->Check(To => $OrigHeader{From})) { # add history row $Self->HistoryAdd( TicketID => $Param{TicketID}, HistoryType => 'LoopProtection', Name => "\%\%$OrigHeader{From}", CreateUserID => $Param{UserID}, ); # do log $Self->{LogObject}->Log( Priority => 'notice', Message => "Sent no '$Param{AutoResponseType}' for Ticket [". "$Ticket{TicketNumber}] ($OrigHeader{From}) " ); } else { # write log if ($Param{UserID} ne $Self->{ConfigObject}->Get('PostmasterUserID') || $Self->{LoopProtectionObject}->SendEmail(To => $OrigHeader{From})) { # get history type </snip>
A part of the last "if" include the condition "$Param{UserID} ne $Self->{ConfigObject}->Get('PostmasterUserID')"
I think, this is wrong. I remove this part of condition and test then autoreply function. This work fine. Where are the error? Is the code wrong or i think it wrong? Why should the postmaster not generate a autoreply?
Bye Thomas
_______________________________________________ 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 Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
-- ------------------------------------------------------------------ Le informamos que se ha habilitado un área de soporte en la web de Panda Software (http://www.pandasoftware.com.uy/) llamada Soporte. En ella podrá consultar las soluciones a las preguntas más frecuentes que se reciben en nuestro departamento, así como consejos que le ayudarán a proteger su sistema. ------------------------------------------------------------------ Gustavo Azambuja Soporte Técnico PANDA SOFTWARE URUGUAY José E. Rodó 1955 11200 - Montevideo Uruguay - Phone/Fax: +5982 4020673 MailTo: gazambuja@pandasoftware.com.uy WEB: http://www.pandasoftware.com.uy
participants (2)
-
Gustavo Azambuja
-
Thomas Kaminski