Package: debarchiver
Version: 0.1.8
Severity: normal

I think if you set mailtos to something like:
 @mailtos = ('Changed-By', '[EMAIL PROTECTED]');
and Changed-By ends up having the same email address, then you might get
emailed twice.
I thought this, because I got emailed twice, but then I realised that it
wasn't because of the same email address, it was because the second one
was an alias to me. (Which of course your script can't detect).

But by then I'd already prepared this patch, so I thought I'd show you
the patch anyway.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)

Versions of packages debarchiver depends on:
ii  adduser                       3.63       Add and remove users and groups
ii  apt-utils                     0.5.28.6   APT utility programs
ii  dpkg-dev                      1.10.28    Package building tools for Debian
ii  opalmod                       0.1.13     A set of Perl modules for various 

-- no debconf information
--- debarchiver.orig    2005-11-18 12:15:48.640511216 +1100
+++ debarchiver 2005-11-18 12:21:26.084211976 +1100
@@ -506,6 +506,7 @@
 sub determineMailTo() {
     my $to = "";
     my $toi;
+    my %to_hash;
     foreach $toi (@mailtos) {
        # Expand to email if there is no email address.
        if ($toi !~ /\@/) {
@@ -521,16 +522,11 @@
            }
        }
        if ($toi !~ /^\s*$/) {
-           if ($to =~ /^\s*$/) {
-               $to = $toi;
-           }
-           else {
-               $to = "$to, $toi";
-           }
+           $to_hash{$toi} = "";
        }
     }
     pdebug(5, "Mail will be sent to $to.");
-    return $to;
+    return join(", ", keys(%to_hash));
 }
 
 ###############################################################################

Reply via email to