]> git.donarmstrong.com Git - debbugs.git/commitdiff
fix mbox handling
authorDon Armstrong <don@archimedes>
Thu, 8 Mar 2007 01:05:15 +0000 (17:05 -0800)
committerDon Armstrong <don@archimedes>
Thu, 8 Mar 2007 01:05:15 +0000 (17:05 -0800)
cgi/bugreport.cgi

index 01f6934067f45e93a22d99802959a0ecc57c83d6..0d8e31e56cde45dcae4aa2f73784bfc1e6ad8699 100755 (executable)
@@ -537,9 +537,9 @@ END
          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)?\@/;
-         $record_wanted_anyway = 1 if $record->{text} =~ /^Received: \(at control\)/;
-         next if not $boring and $record->{type} ne $wanted_type and not $record_wanted_anyway and @records > 1;
+         next if $msg_id =~/handler\..+\.ack(?:info|done)?\@/;
+         $record_wanted_anyway = 1 if $record->{text} =~ /^Received: \(at control|submit\)/;
+         next if not $boring and not $record->{type} eq $wanted_type and not $record_wanted_anyway and @records > 1;
          my @lines = split( "\n", $record->{text}, -1 );
          if ( $lines[ 1 ] =~ m/^From / ) {
               my $tmp = $lines[ 0 ];