]> 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, 29 Jan 2023 18:57:26 +0000 (10:57 -0800)
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 87f688e368fbf167b784ccedba4e1cba2c8bb319..a33863ff62431eb66463f3671418c8b8207e6844 100755 (executable)
@@ -305,7 +305,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;