]> git.donarmstrong.com Git - debbugs.git/commitdiff
fix foreachmsg debug messages
authorDon Armstrong <don@donarmstrong.com>
Thu, 14 Dec 2017 23:46:28 +0000 (15:46 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 14 Dec 2017 23:46:28 +0000 (15:46 -0800)
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;
     }
 }