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-09 16:30:09.000000000 +0200
@@ -633,6 +633,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-09 16:40:44.000000000 +0200
@@ -213,6 +213,9 @@
 
         # Must load the Bugzilla package before any of its functions are used.
         eval "use Bugzilla";
+        eval "use Bugzilla::Config";
+        eval "use Bugzilla::Bug";
+        eval "use Bugzilla::BugMail";
     }
 
     # This is direct modification to bugzilla's internal variables
@@ -1471,5 +1474,19 @@
     return 1;
 }
 
+#
+# Send notification
+sub integration_send_notification {
+    my $self = shift;
+    my ( $bugid, $username ) = ( @_ );
+
+    my $changer = new Bugzilla::User( { name => $username } );
+    Bugzilla->set_user( $changer );
+    my $bug = new Bugzilla::Bug( $bugid );
+    Bugzilla::BugMail::Send( $bug->bug_id, { changer => $bug->reporter->login } );
+
+    return 0;
+}
+
 
 1;
diff -Naur Scmbug/Daemon/Integration.pm Scmbug.new/Daemon/Integration.pm
--- Scmbug/Daemon/Integration.pm	2009-03-09 18:19:08.000000000 +0200
+++ Scmbug.new/Daemon/Integration.pm	2009-03-09 18:24:27.000000000 +0200
@@ -101,6 +101,15 @@
 
     $self->bugtracker()->integration_disconnect_database();
 
+    ##
+    # Trigger mailing.
+    #
+    my $login_name = $self->request()->{ translated_username };
+    my @bugs = $self->get_all_related_bug_ids();
+    foreach my $bugid ( @bugs ) {
+        $self->bugtracker()->integration_send_notification( $bugid, $login_name );
+    }
+
     return $retval;
 }
 
@@ -648,6 +657,24 @@
     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 = ();
+    my $e;
+
+    foreach $e ( @bug_ids, @res_ids ) {
+        $res{$e}++;
+    }
+
+    @res = sort {$a <=> $b} keys %res;
+
+    return @res;
+}
 
 
 1;
