diff -Naur Scmbug/Daemon/Bugtracker.pm Scmbug.new/Daemon/Bugtracker.pm
--- Scmbug/Daemon/Bugtracker.pm	2009-01-26 19:41:43.000000000 +0200
+++ Scmbug.new/Daemon/Bugtracker.pm	2009-03-10 00:28:16.000000000 +0200
@@ -115,6 +115,7 @@
     $self->username ( $data->{ database_username } );
     $self->password ( $data->{ database_password } );
     $self->bug_url_prefix ( $data->{ bug_url_prefix } );
+    $self->changer_notification_enabled ( $data->{ changer_notification_enabled } );
 }
 
 
@@ -294,6 +295,17 @@
 }
 
 
+sub changer_notification_enabled {
+    my $self = shift;
+    my $data = shift;
+
+    if ( $data ) {
+	$self->{ changer_notification_enabled } = $data;
+    } else {
+	return $self->{ changer_notification_enabled };
+    }
+}
+
 
 sub active_states_list {
     my $self = shift;
@@ -633,6 +645,10 @@
     return @comment_sets;
 }
 
+#
+# Send notification
+sub integration_send_notification {
+}
 
 
 1;
diff -Naur Scmbug/Daemon/Bugzilla.pm Scmbug.new/Daemon/Bugzilla.pm
--- Scmbug/Daemon/Bugzilla.pm	2009-01-26 19:41:43.000000000 +0200
+++ Scmbug.new/Daemon/Bugzilla.pm	2009-03-10 01:15:01.000000000 +0200
@@ -213,6 +213,7 @@
 
         # Must load the Bugzilla package before any of its functions are used.
         eval "use Bugzilla";
+        eval "use Bugzilla::BugMail";
     }
 
     # This is direct modification to bugzilla's internal variables
@@ -1471,5 +1472,19 @@
     return 1;
 }
 
+#
+# Send notification
+sub integration_send_notification {
+    my $self = shift;
+    my ( $bugid, $vars ) = ( @_ );
+
+    # If vars changer is not defined then changer is also notified (from Bugzilla).
+    if ( $self->changer_notification_enabled ) {
+        $vars = {};
+    }
+
+    return Bugzilla::BugMail::Send( $bugid, $vars );
+}
+
 
 1;
diff -Naur Scmbug/Daemon/Integration.pm Scmbug.new/Daemon/Integration.pm
--- Scmbug/Daemon/Integration.pm	2009-01-26 19:41:43.000000000 +0200
+++ Scmbug.new/Daemon/Integration.pm	2009-03-10 01:24:47.000000000 +0200
@@ -100,10 +100,28 @@
 
     $self->bugtracker()->integration_disconnect_database();
 
+    # Trigger mailing.
+    $self->send_bugtracker_notification_to_all();
+
     return $retval;
 }
 
+#
+# Send bugtracker notifications.
+#
+sub send_bugtracker_notification_to_all {
+    my $self = shift;
+
+    my $vars = {};
+    $vars->{ 'changer' } = $self->request()->{ translated_username };
+
+    my @bugs = $self->get_all_related_bug_ids();
 
+    foreach my $bugid ( @bugs ) {
+        my $ret_message = $self->bugtracker()->integration_send_notification( $bugid, $vars );
+        # could log result here
+    }
+}
 
 #
 # Processes a verify activity
@@ -647,6 +665,23 @@
     return ( $matched_owner, $case_sensitive_username_verification_who );
 }
 
+# Get union of all bug id-s and resolution ids
+sub get_all_related_bug_ids {
+    my $self = shift;
+    my @bug_ids = @{ $self->request()->{ ids } };
+    my @res_ids = keys %{ $self->request()->{ resolution_ids } };
+
+    my @res = ();
+    my %res = ();
+
+    foreach my $e ( @bug_ids, @res_ids ) {
+        $res{$e}++;
+    }
+
+    @res = sort {$a <=> $b} keys %res;
+
+    return @res;
+}
 
 
 1;
