Hello,
in advance sorry for my agly english.
We use OTRS 2.0 from the cvs.
And we have a mailacount to collect all incoming and outgoing
support-mails.
To this we use the $Self->{'SendmailBcc'} of otrs.
If a Agent add a note, we want to get a nofification. But any notes was
supressed, because the agent write a note to his ticket self. If he do
this, normaly he don't need a notify to this own action.
But in this case no mail and no bcc would be generated.
We can't configure otrs to do this. But we modify the code of otrs.
And now we send this patch to the dev-list.
I hope, you, the otrs-team, take this code in the otrs.
Bye
Thomas Kaminski
--
Thomas Kaminski [EMAIL PROTECTED] fon: +49 421 22 232-0
Entwicklung Linux for Your Business fax: +49 421 22 232-99
Univention GmbH http://www.univention.de/ mobil: +49 175 22 999 23
diff -Prau otrs-orig/Kernel/Config/Defaults.pm otrs/Kernel/Config/Defaults.pm
--- otrs-orig/Kernel/Config/Defaults.pm Fri Feb 25 11:56:23 2005
+++ otrs/Kernel/Config/Defaults.pm Fri Feb 25 13:04:12 2005
@@ -738,6 +738,12 @@
# --------------------------------------------------- #
# --
+ # send allways a notification by add note
+ # --
+ #$Self->{AgentNotifyAlwaysOnAddNote} = 1;
+ $Self->{AgentNotifyAlwaysOnAddNote} = 0;
+
+ # --
# notification sender
# --
$Self->{NotificationSenderName} = 'OTRS Notification Master';
diff -Prau otrs-orig/Kernel/System/Ticket/Article.pm otrs/Kernel/System/Ticket/Article.pm
--- otrs-orig/Kernel/System/Ticket/Article.pm Fri Feb 25 11:56:27 2005
+++ otrs/Kernel/System/Ticket/Article.pm Fri Feb 25 13:05:17 2005
@@ -292,7 +292,7 @@
}
elsif ($Param{HistoryType} =~ /^AddNote$/i) {
# send agent notification to agent
- if ($Ticket{OwnerID} ne 1 && $Ticket{OwnerID} ne $Param{UserID}) {
+ if (($Ticket{OwnerID} ne 1 && $Ticket{OwnerID} ne $Param{UserID}) || ($Self->{ConfigObject}->Get('AgentNotifyAlwaysOnAddNote'))) {
my %UserData = $Self->{UserObject}->GetUserData(
UserID => $Ticket{OwnerID},
Cached => 1,
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev