From: Don Armstrong <don@volo>
Date: Sat, 10 Mar 2007 12:08:54 +0000 (-0800)
Subject: move next on seen msg_id to the right location in bugreport.cgi
X-Git-Tag: release/2.6.0~577^2
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1de5f98127c24b20d79884adbaa042f652ce5a38;p=debbugs.git

move next on seen msg_id to the right location in bugreport.cgi
---

diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi
index 88e251f1..83e9b12a 100755
--- a/cgi/bugreport.cgi
+++ b/cgi/bugreport.cgi
@@ -536,10 +536,10 @@ END
 	  my $record_wanted_anyway = 0;
 	  my ($msg_id) = $record->{text} =~ /^Message-Id:\s+<(.+)>/im;
 	  next if exists $seen_message_ids{$msg_id};
-	  $seen_message_ids{$msg_id} = 1;
 	  next if $msg_id =~/handler\..+\.ack(?:info|done)?\@/;
-	  $record_wanted_anyway = 1 if $record->{text} =~ /^Received: \(at control|submit\)/;
+	  $record_wanted_anyway = 1 if $record->{text} =~ /^Received: \(at control\)/;
 	  next if not $boring and not $record->{type} eq $wanted_type and not $record_wanted_anyway and @records > 1;
+	  $seen_message_ids{$msg_id} = 1;
 	  my @lines = split( "\n", $record->{text}, -1 );
 	  if ( $lines[ 1 ] =~ m/^From / ) {
 	       my $tmp = $lines[ 0 ];