Your message dated Thu, 23 Jan 2025 15:14:31 +0000
with message-id <[email protected]>
and subject line Bug#970209: fixed in mhonarc 2.6.24-1
has caused the Debian Bug report #970209,
regarding mhonarc: -conlen mbox parsing breaks on messages with last line
starting with "From " (despite Content-Length)
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.)
--
970209: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970209
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mhonarc
Version: 2.6.19-2
Severity: normal
Tags: patch upstream
Dear Maintainer,
Consider the attached UUCP-style mbox, where for each message the
byte-length of its body is indicated with a Content-Length: header.
The ‘-conlen’ [0] flag is meant to make MHonArc read the correct body
length and remove the need for unescaping lines starting with “From: ”.
This works well except when it's the *last* line that starts with
“From: ”.
$ mhonarc -conlen -outdir /tmp/out - </tmp/test.mbox
This is MHonArc v2.6.19+, Perl 5.030003 linux
Converting messages to /tmp/out
Reading - ..
Warning: Could not parse date for message
Message-Id:
<[email protected]>
Date:
.
Writing mail ...
Writing /tmp/out/maillist.html ...
Writing /tmp/out/threads.html ...
Writing database ...
3 new messages
3 total messages
$ grep X-Message-Id /tmp/out/msg*.html
/tmp/out/msg00000.html:<!--X-Message-Id: [email protected] -->
/tmp/out/msg00001.html:<!--X-Message-Id:
d41d8cd98f00b204e9800998ecf8427e@NO-ID-FOUND.mhonarc.org -->
/tmp/out/msg00002.html:<!--X-Message-Id: [email protected] -->
That's because MHonArc slurps “bogus” lines after after the message with
# Slurp up bogus data if required (should I do this?)
while (!/$FROM/o && !eof($handle)) {
$_ = <$handle>;
}
where $_ is initially set to the last body line… (By that loop is
AFAICT required to read “\nFrom …\n”.) The fix is use a post condition
instead:
$ mhonarc -conlen -outdir /tmp/out - </tmp/test.mbox
This is MHonArc v2.6.19+, Perl 5.030003 linux
Converting messages to /tmp/out
Reading - ..
Writing mail ..
Writing /tmp/out/maillist.html ...
Writing /tmp/out/threads.html ...
Writing database ...
2 new messages
2 total messages
$ grep X-Message-Id /tmp/out/msg*.html
/tmp/out/msg00000.html:<!--X-Message-Id: [email protected] -->
/tmp/out/msg00001.html:<!--X-Message-Id: [email protected] -->
Cheers,
--
Guilhem.
[0] https://www.mhonarc.org/MHonArc/doc/resources/conlen.html
test.mbox
Description: application/mbox
--- mhonarc-2.6.19/lib/mhamain.pl
+++ mhonarc-2.6.19/lib/mhamain.pl
@@ -1017,9 +1017,9 @@
}
}
# Slurp up bogus data if required (should I do this?)
- while (!/$FROM/o && !eof($handle)) {
+ do {
$_ = <$handle>;
- }
+ } while (!/$FROM/o && !eof($handle));
} else { # No content-length
while (<$handle>) {
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: mhonarc
Source-Version: 2.6.24-1
Done: Andreas Tille <[email protected]>
We believe that the bug you reported is fixed in the latest version of
mhonarc, 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.
Andreas Tille <[email protected]> (supplier of updated mhonarc 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, 13 Jan 2025 14:50:47 +0100
Source: mhonarc
Architecture: source
Version: 2.6.24-1
Distribution: unstable
Urgency: medium
Maintainer: Package Salvaging Team <[email protected]>
Changed-By: Andreas Tille <[email protected]>
Closes: 768132 970208 970209 1053567 1091184
Changes:
mhonarc (2.6.24-1) unstable; urgency=medium
.
* Team upload.
.
[ Andreas Tille ]
* New upstream version
Closes: #1053567, #768132
* Maintain package in Package Salvage team
Closes: #1091184
* Point Homepage to CPAN
* Add watch file
* d/copyright: review
* Standards-Version: 4.7.0 (routine-update)
* debhelper-compat 13 (routine-update)
* Remove trailing whitespace in debian/changelog (routine-update)
* Rules-Requires-Root: no (routine-update)
* d/control: drop duplicated section
.
[ Guilhem Moulin ]
* Fix parsing breaks on messages with last line starting with "From "
Closes: #970209
* Fix archives when hen temporary filename ends with '_z'
Closes: #970208
Checksums-Sha1:
7049e982c78c1c9ebd9ace061f86e86db29656fb 1937 mhonarc_2.6.24-1.dsc
9f1ab74576925697c7b7ce9cb33a85f344befa6c 1990516 mhonarc_2.6.24.orig.tar.gz
d4058fe2e5bced8626facf7dc8aae3a091159c37 6276 mhonarc_2.6.24-1.debian.tar.xz
2b7f288fc16b2d49938e57bb22e3aa8ea9317046 5840 mhonarc_2.6.24-1_amd64.buildinfo
Checksums-Sha256:
001e31a49109e1e1d03c7b2668db1df3fe3d567dfe7e00d4742cdee44eff15b1 1937
mhonarc_2.6.24-1.dsc
457dc7374ee59cb75a0729e51cef2f2c52b48180f739d8fd956ea19882815f33 1990516
mhonarc_2.6.24.orig.tar.gz
d60ca6d1feadc08acfa89089d9989da4107a1d99803526ccebebefd0f24ca37d 6276
mhonarc_2.6.24-1.debian.tar.xz
13e579074588cd69df8142eb69b0866061cb8349d0601094b2f9f52adcb14cec 5840
mhonarc_2.6.24-1_amd64.buildinfo
Files:
e9b33e514f65eac3a52f35de3dba0f24 1937 mail optional mhonarc_2.6.24-1.dsc
7cd758c605297dba4949e047b2f6749a 1990516 mail optional
mhonarc_2.6.24.orig.tar.gz
a318d25091d6dca2959eec939b9d3b18 6276 mail optional
mhonarc_2.6.24-1.debian.tar.xz
89bdb8aed0365231579f060b589a638e 5840 mail optional
mhonarc_2.6.24-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmeFHYMRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtG7TQ//dr5NqQqylBp1vV+kxiTSeMYGD77W4nUY
yfhgqPFHD1cGmIFsXrwLXb0jOIIp14bPxjTI01uNtzLKKPvmQ3r8wvlgveGQGeiA
lBkqIf8RGNdegAgFbHM+jURfuH4hpm5fsv0/KqzBw+gRFxdFtGO6HP+UR59Tn4tY
L5zJvLOqJceB4rSBuau/X1FYB+O2sadvBunicFxQ5zrUKdQlJbcJqMzjHt/nxuR0
lKTXkFIoQNjo/Vli0BPJIxusFL++ZJ5PDXlyYuJK2082UkwgH3xQQs7IXxvpZ/pf
Qixn81oWSk7GqCYkwXNQO0fum4chzRAMSYThJT+QNg7K7Y6q9wu2nCbL3sb4tuPH
DCSNG9KHO3+TLkL1iE+vPhsdTbkju/NwnGfoDidh31ZoH4V2wl/Awkl+KFLGRJ+H
tq3132yj97rlbUAwTZUr0KdBw4xQGAffpa+MPfqXia7sUMlROtqE6xgzxC7Gfcoc
Gklr91NdY8iNi5S5KgyhIku4AaND9d47S5R2F5xWEvF2ZA6I7reVyq8AbxWOHLR2
YHsqEghX3CNJcAPHbKkPSje11vN6cUiZ0wWvb29NhoYVIbI8oTt3f7uBvrGW2xYK
2VvhOZvXofiH4t2aS3LjieiOJImq39bZQ9g3SjG56ris3v+/HNXhGkMBAEQoI9Pk
nURmimhDCNI=
=LcL1
-----END PGP SIGNATURE-----
pgpqPt6lyMxNL.pgp
Description: PGP signature
--- End Message ---