]> git.donarmstrong.com Git - debbugs.git/commitdiff
- Only mail duplicated recipients once (closes: #172635)
authorDon Armstrong <don@donarmstrong.com>
Thu, 14 Jun 2007 12:21:07 +0000 (13:21 +0100)
committerDon Armstrong <don@donarmstrong.com>
Thu, 14 Jun 2007 12:21:07 +0000 (13:21 +0100)
Debbugs/Mail.pm
debian/changelog

index 54e52f5dc6d852a7dc161932f449fcdc6adb9431..8ee984a373ec0dbc1d7e54e5eaea6d481f31bda0 100644 (file)
@@ -135,6 +135,9 @@ sub send_mail_message{
      my @recipients;
      @recipients = @{$param{recipients}} if defined $param{recipients} and
          ref($param{recipients}) eq 'ARRAY';
+     my %recipients;
+     @recipients{@recipients} = (1) x @recipients;
+     @recipients = keys %recipients;
      # If there are no recipients, use -t to parse the message
      if (@recipients == 0) {
          $param{parse_for_recipients} = 1 unless exists $param{parse_for_recipients};
index dea4c80e5b76b22f10cedbb5eef1b0f7bd6673be..6ccafaa3966a97cc0cbe8498cc700b4ec4bb01a5 100644 (file)
@@ -183,6 +183,7 @@ debbugs (2.4.2) UNRELEASED; urgency=low
     - Implement versioning aware archiving support (closes: #339141)
     - Split out packages so that you don't have to install the mail stuff
       unless you want it.
+    - Only mail duplicated recipients once (closes: #172635)
 
   
  -- Colin Watson <cjwatson@debian.org>  Fri, 20 Jun 2003 18:57:25 +0100