]> git.donarmstrong.com Git - debbugs.git/commitdiff
Allow exporting of debbugs responses to mbox format when requested
authorPaul Wise <pabs@debian.org>
Sun, 13 Nov 2022 01:00:39 +0000 (09:00 +0800)
committerDon Armstrong <don@donarmstrong.com>
Sun, 26 Mar 2023 23:11:07 +0000 (16:11 -0700)
This makes mbox export of response messages consistent with HTML export.

The bts (from devscripts) cache mode of "full" requests all messages from the
bug, including debbugs response mails, in mbox format but debbugs always
ignores those messages when returning an mbox, leading to bts errors.

cgi/bugreport.cgi

index e090321e63d8719b7561b4faa53c75cc437b6c8c..ed5f9be74703eb70fbf423952c1bc4df137e6ebc 100755 (executable)
@@ -267,7 +267,7 @@ END
          my $record_wanted_anyway = 0;
          my ($msg_id) = record_regex($record,qr/^Message-Id:\s+<(.+)>/im);
          next if defined $msg_id and exists $seen_message_ids{$msg_id};
-         next if defined $msg_id and $msg_id =~/handler\..+\.ack(?:info|done)?\@/;
+         next if not defined $msg and defined $msg_id and $msg_id =~/handler\..+\.ack(?:info|done)?\@/;
          $record_wanted_anyway = 1 if record_regex($record,qr/^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 if defined $msg_id;