Bug#815198: marked as done (NEW script: /usr/lib/debbug/mbox <bugno>)

"Debian Bug Tracking System" <[email protected]> Tue, 28 Apr 2026 07:51:02 +0000
Newsgroups gmane.linux.debian.devel.debbugs
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1777362662-2000521-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Tue, 28 Apr 2026 07:49:42 +0000
with message-id <[email protected]>
and subject line Bug#815198: fixed in debbugs 2.6.5
has caused the Debian Bug report #815198,
regarding NEW script: /usr/lib/debbug/mbox <bugno>
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


--=20
815198: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D815198
Debian Bug Tracking System
Contact [email protected] with problems

------------=_1777362662-2000521-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 20 Feb 2016 00:21:53 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
	(2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-13.4 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE,
	PGPSIGNATURE,RP_MATCHES_RCVD,URIBL_CNKR autolearn=ham autolearn_force=no
	version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 35; hammy, 150; neutral, 147; spammy,
	0. spammytokens: hammytokens:0.000-+--H*c:pgp-sha256, 0.000-+--exp1,
	0.000-+--H*c:pgp-signature, 0.000-+--H*c:protocol, 0.000-+--H*c:micalg
Return-path: <[email protected]>
Received: from freya.das-netzwerkteam.de ([88.198.48.199])
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.84)
	(envelope-from <[email protected]>)
	id 1aWvJ2-0005PJ-4a
	for [email protected]; Sat, 20 Feb 2016 00:21:53 +0000
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id DB1409B8
	for <[email protected]>; Sat, 20 Feb 2016 01:21:48 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id BA76D3B908
	for <[email protected]>; Sat, 20 Feb 2016 01:21:47 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de
Received: from grimnir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id C-2MI8XlBTWc for <[email protected]>;
	Sat, 20 Feb 2016 01:21:41 +0100 (CET)
Received: from das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id 6A3F33B906
	for <[email protected]>; Sat, 20 Feb 2016 01:21:41 +0100 (CET)
Received: from p5B3BBDF4.dip0.t-ipconnect.de (p5B3BBDF4.dip0.t-ipconnect.de
 [91.59.189.244]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP;
 Sat, 20 Feb 2016 00:21:41 +0000
Date: Sat, 20 Feb 2016 00:21:41 +0000
Message-ID: <20160220002141.Horde.R30kdpf1DWRgyjVy1m-Fqic@mail.das-netzwerkteam.de>
From: Mike Gabriel <[email protected]>
To: [email protected]
Subject: NEW script: /usr/lib/debbug/mbox <bugno>
User-Agent: Horde Application Framework 5
Accept-Language: de,en
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 91.59.189.244
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Firefox/38.0 Iceweasel/38.5.0
Content-Type: multipart/signed; boundary="=_cM_PiFS4ijGHZJBoe2SZZfF";
 protocol="application/pgp-signature"; micalg=pgp-sha256
MIME-Version: 1.0
Delivered-To: [email protected]

This message is in MIME format and has been PGP signed.

--=_cM_PiFS4ijGHZJBoe2SZZfF
Content-Type: multipart/mixed; boundary="=_P400Q04t5m7_8Ip-UOw9qJ5"

This message is in MIME format.

--=_P400Q04t5m7_8Ip-UOw9qJ5
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: debbugs
Version: 2.6.0~exp1+git20160213.3eea543
Severity: wishlist

Hi,

I have hacked together a little new script named "mbox". I have it in=20=20
/usr/lib/debbugs.

The=20script prints a bug number's mailbox to stdout. Maybe it is helpful.

Script is attached. It has been derived from bugreport.cgi.

Greets,
Mike
--=20

DAS-NETZWERKTEAM
mike=20gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: [email protected], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/mailxchange/kronolith/fb.php?u=3Dm.gabriel=
%40das-netzwerkteam.de

--=_P400Q04t5m7_8Ip-UOw9qJ5
Content-Type: text/plain; name=mbox
Content-Disposition: attachment; size=2235; filename=mbox
Content-Transfer-Encoding: quoted-printable

#!/usr/bin/perl

use warnings;
use strict;

use POSIX qw(strftime);

use Debbugs::Config qw(:globals :text);

# for read_log_records
use Debbugs::Log qw(read_log_records);
use Debbugs::Common qw(buglog bug_status);
use Debbugs::Status qw( split_status_fields get_bug_status);
use Debbugs::MIME qw(create_mime_message);

use List::Util qw(max);

my $ref =3D shift or die;


my %bugusertags;

my $buglog =3D buglog($ref);
my $bug_status =3D bug_status($ref);

my $buglogfh;
if ($buglog =3D~ m/\.gz$/) {
    my $oldpath =3D $ENV{'PATH'};
    $ENV{'PATH'} =3D '/bin:/usr/bin';
    $buglogfh =3D IO::File->new("zcat $buglog |") or quitcgi("open log for =
$ref: $!");
    $ENV{'PATH'} =3D $oldpath;
} else {
    $buglogfh =3D IO::File->new($buglog,'r') or quitcgi("open log for $ref:=
 $!");
}

my %status =3D
    %{split_status_fields(get_bug_status(bug=3D>$ref,
                                         bugusertags =3D> \%bugusertags,
                                        ))};

my @records;
eval{
     @records =3D read_log_records($buglogfh);
};

my $mbox =3D 1;

my @log;
if ( $mbox ) {
     binmode(STDOUT,":raw");
     my $date =3D strftime "%a %b %d %T %Y", localtime;

     my $message_number=3D0;
     my %seen_message_ids;
     for my $record (@records) {
	  next if $record->{type} !~ /^(?:recips|incoming-recv)$/;
	  my $wanted_type =3D 'incoming-recv';
	  # we want to include control messages anyway
	  my $record_wanted_anyway =3D 0;
	  my ($msg_id) =3D $record->{text} =3D~ /^Message-Id:\s+<(.+)>/im;
	  next if defined $msg_id and exists $seen_message_ids{$msg_id};
	  next if defined $msg_id and $msg_id =3D~/handler\..+\.ack(?:info|done)?\=
@/;
	  $record_wanted_anyway =3D 1 if $record->{text} =3D~ /^Received: \(at con=
trol\)/;
	  next if not $record->{type} eq $wanted_type and not $record_wanted_anywa=
y and @records > 1;
	  $seen_message_ids{$msg_id} =3D 1 if defined $msg_id;
	  my @lines =3D split( "\n", $record->{text}, -1 );
	  if ( $lines[ 1 ] =3D~ m/^From / ) {
	       my $tmp =3D $lines[ 0 ];
	       $lines[ 0 ] =3D $lines[ 1 ];
	       $lines[ 1 ] =3D $tmp;
	  }
	  if ( !( $lines[ 0 ] =3D~ m/^From / ) ) {
	       unshift @lines, "From unknown $date";
	  }
	  map { s/^(>*From )/>$1/ } @lines[ 1 .. $#lines ];
	  print join( "\n", @lines ) . "\n";
     }
     exit 0;
}

--=_P400Q04t5m7_8Ip-UOw9qJ5--

--=_cM_PiFS4ijGHZJBoe2SZZfF
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAABCAAGBQJWx7GUAAoJEJr0azAldxsxguoQAIkCWNtyglnBbf+t1d1vX5/S
INr8PiA5inIstdO2wKYtSk8sqqoNMaOWAHOQl7qZZpIe1pPwyluo2s41T6Nx39Us
0jtLyP8AdlPxtVk1sQpCDcGrsXwEt3Jyed1kwaOOE1VvLCJ45GLE6ukS9fF8Rig6
yZK/wfazgjdhW6lQcfgc9XtePsafagewr7dz2Hb+odrb144TonTuEv7FbO+ONjMR
02o3OY/wNSz/QMhsdcotuIxTysWUAA3GOY6eE9cQ7AO3I7wLRdwTkSRKMfJG0xkW
y6PSuvK00rMjyndqMBTT2TqykIC8mp+gX+HEv3gJrtPyEkbxuD01fnT13Kaz+kMI
68b/NieIks/qiMEC62MMsbjSP5WSA6XzoysvFJI+o7frNzzvj5mSOBhDsShcpwJT
hHv50gH/2nHsyGKiHhzWAOWxAu+XH0rZqV1ZFXKgHCOdkBbHp8pGKoGapG/A9glV
JVAGCDuAfYB+MFYAV1JCb/o1lWrM0uWtCffs54C2zOa/JBXSheEhhFO5yzbtgVuF
2ZIiiqL8f6jZzLft50Axc77Tk+U16Y2/xa5usp1yop1qNc8fukg/vB3M/615zzSh
mR7TyCPQuAMqzncLU+9Nm1o9y46jNTGiSxqgqPzgDrL0Uh61JF9N1gEJykHzi4gG
YsAVUjSXPBiDwjPx4dGq
=vTGi
-----END PGP SIGNATURE-----

--=_cM_PiFS4ijGHZJBoe2SZZfF--

------------=_1777362662-2000521-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 815198-close) by bugs.debian.org; 28 Apr 2026 07:49:44 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-114.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
	DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FVGT_m_MULTI_ODD,
	HAS_BUG_NUMBER,MD5_SHA1_SUM,PGPSIGNATURE,SPF_HELO_PASS,SPF_PASS,
	USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
	version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 127; hammy, 150; neutral, 178; spammy,
	0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK,
	0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload,
	0.000-+--H*r:sk:fasolo., 0.000-+--H*MI:fasolo
Return-path: <[email protected]>
Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b72]:51770)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <[email protected]>)
	id 1wHdCS-008OEy-1W
	for [email protected];
	Tue, 28 Apr 2026 07:49:44 +0000
Received: via submission
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,[email protected] (verified)
	by mailly.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <[email protected]>)
	id 1wHdCR-002hKb-0Z
	for [email protected];
	Tue, 28 Apr 2026 07:49:43 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=ftp-master.debian.org; s=smtpauto.fasolo; h=Date:Message-Id:Content-Type:
	Subject:MIME-Version:To:Reply-To:From:Cc:Content-Transfer-Encoding:Content-ID
	:Content-Description:In-Reply-To:References;
	bh=qgC+GqVN4ztY1org5vLoruOmSxq8m/PKzh0l7ooFOg0=; b=podWUocaq5i27X7ZsHg9O7vV4e
	ptCkADSYA929a5GasudaRNiwMfrJZ7st+OqfwbVCxtNRJuGG8AMSt1VJHUP7Jbq55l/0GbVOvgJ6c
	GtWI931mRw8xsPjTN0FaGYhKDRnX6a0DHBdRyVOEunbJqP4qcpouFPXGGYUU4iO91RVCna1QXz4Qd
	CKFwcWBL3KFBNdhMZ7936BP53B1T5hpKglI84fa2jdeIsplAIye+sre21chIYQpyRreM3elnPuR+7
	zpoAyGwF1g59rFa3Wr8QJYyuMznNtYjSAFPdeEICiTo7awzaHWo4w8W6GpG77b9W8GIGn7xXzNkjb
	vxDVtDTA==;
Received: from dak by fasolo.debian.org with local (Exim 4.98.2)
	(envelope-from <[email protected]>)
	id 1wHdCQ-000000047fC-0ssZ;
	Tue, 28 Apr 2026 07:49:42 +0000
From: Debian FTP Masters <[email protected]>
Reply-To: Bill Allombert <[email protected]>
To: [email protected]
X-DAK: dak process-upload
X-Debian: DAK
X-Debian-Package: debbugs
Debian: DAK
Debian-Changes: debbugs_2.6.5_source.changes
Debian-Source: debbugs
Debian-Version: 2.6.5
Debian-Architecture: source
Debian-Suite: unstable
Debian-Archive-Action: accept
MIME-Version: 1.0
Subject: Bug#815198: fixed in debbugs 2.6.5
Content-Type: multipart/signed; micalg="pgp-sha256";
 protocol="application/pgp-signature";
 boundary="===============8210181802010677108=="
Message-Id: <[email protected]>
Date: Tue, 28 Apr 2026 07:49:42 +0000

--===============8210181802010677108==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Source: debbugs
Source-Version: 2.6.5
Done: Bill Allombert <[email protected]>

We believe that the bug you reported is fixed in the latest version of
debbugs, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bill Allombert <[email protected]> (supplier of updated debbugs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 27 Apr 2026 22:05:07 +0200
Source: debbugs
Architecture: source
Version: 2.6.5
Distribution: unstable
Urgency: medium
Maintainer: Debbugs developers <[email protected]>
Changed-By: Bill Allombert <[email protected]>
Closes: 815198 979319
Changes:
 debbugs (2.6.5) unstable; urgency=3Dmedium
 .
   [ Colin Watson ]
   * scripts/process: import missing handle_escaped_commas
   * bugreport.tmpl: fix typo uselessmesages -> uselessmessages
   * pkgreport_options.tmpl: Add labels for pkgreport "Misc options"
 .
   [ Don Armstrong ]
   * New config option $gCcAllmailsToAddr
   * Debbugs/CGI/Pkgreport.pm: generate_package_info:
     - use package_tracking_domain instead of subscription_domain
   * Support X-Debbugs-Cc inside pseudo-headers
   * cgi/version.cgi:
     - Output useful messages when there is an empty version graph
     - Load the source package versions as well as the binary package
   * Debbugs/Status.pm: Suppress malformed UTF-8 warnings when reading status
   * bugreport.tmpl: Fix link rel=3D"canonical" (closes: #979319)
 .
   [ Bill Allombert ]
   * debian/control: Update Standards-Version to 4.7.4
 .
   [ Mike Gabriel ]
   * script/bug2mbox: retrieve mbox associated to bug number locally
     (closes: #815198)
Checksums-Sha1:
 68a2ce3cbc47eeb3713fda671dd7c1dd141d6868 2397 debbugs_2.6.5.dsc
 0d292cf38a1241106e3e92c014814438f6fd416d 256196 debbugs_2.6.5.tar.xz
 74f7256876dd61c640c8399b84d50e4e21aa71c1 5798 debbugs_2.6.5_source.buildinfo
Checksums-Sha256:
 e9f190a0cf51ddfe2af6fc05dd7ea1399a9883963bffc37529598a32a0d08901 2397 debbug=
s_2.6.5.dsc
 1cc9f13118917cadfdb6d286d257632d125df554bcff9b68489aa5335f61cd5c 256196 debb=
ugs_2.6.5.tar.xz
 08738b704cfd235835e48e0f61a578eae1132918fc9fb6ea0f3354b3346638ce 5798 debbug=
s_2.6.5_source.buildinfo
Files:
 af3845bdde17a70e93788796e26bf5f3 2397 misc optional debbugs_2.6.5.dsc
 7e2f3ab6f9e90a048c80090a059a5acf 256196 misc optional debbugs_2.6.5.tar.xz
 dbb52bebd797b67eb6b4f69cd750048b 5798 misc optional debbugs_2.6.5_source.bui=
ldinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEQgKOpASi6dgKxFMUjw58K0Ui44cFAmnwZGMACgkQjw58K0Ui
44c2JRAAjeIJSKoHM0R/aIf1uxPcGGOTcOW9Z+Xqm8puWqemQoc81raVHbrHuwSb
AyYPTpZfT4i/B35gUTv9Sg9/kJJI2r2qdGqtG/cZS5ERLTol0n7xYb6Uzbg7JPHz
mD4NVar0ANMUTRZMRTxXqi3XXMz2n8WJbNQiWQwx7ZrtDKWGMMjjxtfmgnXHchzL
zHAmnPQ+Tat2+2YW+ZxLxtMnmMM8kzXdH9NMRyLGQQcdfM+OoFUL7zBKUDxL6r2F
Nno7WcWhgQ44sIMOMDVoTHod6Ld/56AWVvGfpc81KnwQ1mkABjZqt8KdggvOnXKW
RiPlIPddd4Z4Zb6zPnSepcZasvLOh5wTOs7MbzBJiMtsxsBfcIDqy6Yy+LrzH0uh
mskFvV2OWpsnVHwXcYgjinBm/q3eanyETlKvMOtRBKR5621BOaOpx5QYWa3L1KBi
EVuvyiQOPl3ESnL436ByFtRUbU8BcHGTCWYnkwC9u6/rQblh5OhdgWzOYmKRwWYL
RKuDD/Ub7w6+y2T9EczBqjPRsm4OJB4vwT/25yBeLxMSwjdp+lxtreKQBVkhrk8W
04Y6oKSmsWnAYl7wDTjWSBGg7knoyAiDDqEC+q3Yu9tW3vpYQq7iZiu4GA4ci6Xp
3e2FilpAMJqtGD+39vW0QulPk+Xl4RIaWP8UZVu9JVFioEC7hLE=3D
=3D/W4Q
-----END PGP SIGNATURE-----


--===============8210181802010677108==
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQTziqJOuF8J+ZI8pJSb9qggYcy5IQUCafBmlgAKCRCb9qggYcy5
IfcbAQDf08nI7JU5SGO5UrkPTRCIawf3NXlahYmL0qdZyZWQ3wEA9kOrQKk/S49o
BQd6jE3yEDGBlA3UsQsD2w0C/gqRDQc=
=XW9e
-----END PGP SIGNATURE-----

--===============8210181802010677108==--
------------=_1777362662-2000521-0--