# - Email
#
+=item @unique_list = unique ( @list )
+
+Filter LIST to return only unique strings. Analogous to uniq(1) but does
+not require LIST be sorted. Order of LIST is preserved; the first
+occurrence of each unique value is passed through.
+
+=cut
+
+sub unique {
+ my %filter;
+ my @ret;
+
+ foreach (@_) { unless ($filter{$_}) { $filter{$_}++; push @ret, $_ } }
+
+ return @ret;
+}
+
=item @filtered = exclude_mail_blacklist ( $blacklist_file, @addresses )
Filter ADDRESSES to remove addresses mentioned in BLACKLIST_FILE.
$sender = 'ftp-upload@gnu.org'
if ($send_to_user); # We really want replies to go to the ftp-upload queue
- @email_list = exclude_mail_blacklist($email_blacklist, @email_list);
+ @email_list = unique(exclude_mail_blacklist($email_blacklist, @email_list));
#print STDERR "final emails: @email_list\n";
# return @_;