]> git.donarmstrong.com Git - debbugs.git/blobdiff - bin/debbugs-spam
fix foreachmsg debug messages
[debbugs.git] / bin / debbugs-spam
index d3cb29d9d872ce3fbff3e0ed88437283a4f304c7..f416fb339386bf0a5c3e281ff59d025ce9f9930b 100755 (executable)
@@ -344,17 +344,18 @@ sub foreachmsg {
         my ($msg_id) = record_regex($record,
                                     qr/^Message-Id:\s+<(.+)>/mi);
         next unless defined $msg_id;
+        print STDERR "examining $msg_id: " if $DEBUG;
         if ($msg_id =~ /$config{email_domain}$/) {
-            print STDERR "skipping $msg_id\n" if $DEBUG;
+            print STDERR "skipping\n" if $DEBUG;
             next;
         }
-        print STDERR "examining $msg_id: " if $DEBUG;
         if ($seen_msgids{$msg_id}) {
             print STDERR "already seen\n" if $DEBUG;
             next;
         }
         $seen_msgids{$msg_id}=1;
         $sub->($bug_num,$record,$msg_id);
+        print STDERR "\n" if $DEBUG;
     }
 }