X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FRecipients.pm;h=ae739e973647ef74d2641dfe60b61dacf666093d;hb=ede5f340a093569596670be592d4aace355df05a;hp=8ab2208d388fdfe3793e311cac1d8932e2a23f96;hpb=cfd3e0e6967532e9deafb74615134cc8c3255e16;p=debbugs.git diff --git a/Debbugs/Recipients.pm b/Debbugs/Recipients.pm index 8ab2208..ae739e9 100644 --- a/Debbugs/Recipients.pm +++ b/Debbugs/Recipients.pm @@ -94,6 +94,9 @@ sub add_recipients { actions_taken => {type => HASHREF, default => {}, }, + unknown_packages => {type => HASHREF, + default => {}, + }, }, ); @@ -103,7 +106,7 @@ sub add_recipients { for my $data (@{$param{data}}) { add_recipients(data => $data, map {exists $param{$_}?($_,$param{$_}):()} - qw(recipients debug transcript actions_taken) + qw(recipients debug transcript actions_taken unknown_packages) ); } return; @@ -155,7 +158,10 @@ sub add_recipients { } else { print {$param{debug}} "maintainer none >$p<\n"; - print {$param{transcript}} "Warning: Unknown package '$p'\n"; + if (not exists $param{unknown_packages}{$p}) { + print {$param{transcript}} "Warning: Unknown package '$p'\n"; + $param{unknown_packages}{$p} = 1; + } print {$param{debug}} "MR|unknown-package|$p|$ref|\n"; _add_address(recipients => $param{recipients}, address => $config{unknown_maintainer_email}, @@ -239,7 +245,7 @@ Using the recipient hashref, determines the set of recipients. If you specify one of C, C, or C, you will receive only a LIST of recipients which the main should be Bcc'ed, Cc'ed, or To'ed respectively. By default, a LIST with keys bcc, cc, and to is returned -with ARRAYREF values correponding to the users to whom a message +with ARRAYREF values corresponding to the users to whom a message should be sent. =over