#512231 If all mail is archived, it deletes the source mailbox before being done writing the archive files

Package:
chewmail
Source:
chewmail
Submitter:
Enrico Zini
Date:
2025-03-03 02:57:03 UTC
Severity:
important
Tags:
#512231#5
Date:
2009-01-18 19:24:09 UTC
From:
To:
Hello,

while chewmail has ridiculous memory requirements, and tends to trash my
laptop down to the need of a power cycle, it still has features that I
cannot found in other mail archivers, so I'm stuck with using it.

Here is another flaw that I found.  I had a big mailbox file with some
debian-private archives, and I ran:

  chewmail --days=0 --output-box=debian-private-%Y debian-private

I didn't pay attention to the size of the debian-private mailbox, so
chewmail thrashed my laptop to death.  After rebooting this is what I
found:

$ ls -la debian-private*
-rw-r--r-- 1 enrico enrico       0 2009-01-18 19:24 debian-private-2001
-rw------- 1 enrico enrico       0 2009-01-18 19:24 debian-private-2001.lock
-rw-r--r-- 1 enrico enrico       0 2009-01-18 19:24 debian-private-2002
-rw------- 1 enrico enrico       0 2009-01-18 19:24 debian-private-2002.lock
-rw-r--r-- 1 enrico enrico       0 2009-01-18 19:25 debian-private-2003
-rw------- 1 enrico enrico       0 2009-01-18 19:25 debian-private-2003.lock
-rw-r--r-- 1 enrico enrico 5918720 2009-01-18 19:25 debian-private-2003.tmp
-rw-r--r-- 1 enrico enrico       0 2009-01-18 19:25 debian-private-2004
-rw------- 1 enrico enrico       0 2009-01-18 19:25 debian-private-2004.lock
-rw-r--r-- 1 enrico enrico       0 2009-01-18 19:25 debian-private-2005
-rw------- 1 enrico enrico       0 2009-01-18 19:25 debian-private-2005.lock
-rw-r--r-- 1 enrico enrico       0 2009-01-18 19:25 debian-private-2006
-rw------- 1 enrico enrico       0 2009-01-18 19:25 debian-private-2006.lock
-rw-r--r-- 1 enrico enrico  152059 2009-01-18 19:25 debian-private-2007
-rw-r--r-- 1 enrico enrico       0 2009-01-18 19:25 debian-private-2008
-rw------- 1 enrico enrico       0 2009-01-18 19:25 debian-private-2008.lock

Yes, the original debian-private mailbox is gone, and the mails that it
contained have not been written out yet.  Hooray!  The mailbox is lost.
Luckily, this one did not contain private mail.


Ciao,

Enrico

#512231#10
Date:
2025-01-14 15:08:34 UTC
From:
To:
Hi,

since this bug report describes the package "causes data loss" I set the
severity of this bug to grave.  We should not deliver software which
might cause data loss in our stable releases (thus the bug should be
RC).

I've also forwarded the problem upstream.  I do not assume that chewmail
is actively developed any more but maybe we are lucky ... or at least
other users will become aware of the issue.

Kind regards
    Andreas.

PS: Your package was highlighted in the Bug of the Day[1] initiative, which
aims to introduce newcomers to manageable tasks and guide them through
the workflow to solve them. The focus of this initiative is on migrating
packages to Salsa, as it's a great way to familiarize newcomers with a
consistent Git-based workflow.

[1] https://salsa.debian.org/tille/tiny_qa_tools/-/wikis/Tiny-QA-tasks

#512231#21
Date:
2025-02-05 06:17:46 UTC
From:
To:
Hi Eric,

thanks a lot for fixing this bug upstream[1].

I would volunteer to move the package to Salsa in the debian/ team and
upload the fix as team upload in case this might help you.  Please let
me know what you think.

In case it might have slipped your attention there are some more open
bugs for chewmail in BTS[2].  If it helps I can open according issues
in Github.

Kind regards and thank you for your quick response in Github
    Andreas.

[1] https://github.com/zedinosaur/chewmail/commit/f9711c9366e21a77446042c70f329f5ec4314888
[2] https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=chewmail

#512231#32
Date:
2025-03-03 02:52:04 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
chewmail, 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 512231@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Eric Dorland <eric@debian.org> (supplier of updated chewmail 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 02 Mar 2025 21:01:13 -0500
Source: chewmail
Architecture: source
Version: 1.4-1
Distribution: unstable
Urgency: medium
Maintainer: Eric Dorland <eric@debian.org>
Changed-By: Eric Dorland <eric@debian.org>
Closes: 512231
Changes:
 chewmail (1.4-1) unstable; urgency=medium
 .
   * New upstream release (Closes: 512231)
   * Add gbp.conf
Checksums-Sha1:
 6e999e96d5f6696186d9632263a0c9b6809e874f 1802 chewmail_1.4-1.dsc
 0402a4415196f53f0ce48ef5c3999891a1ce659c 11031 chewmail_1.4.orig.tar.gz
 67e50d4942f331f7e50e5362aecc1afdd7825878 1956 chewmail_1.4-1.debian.tar.xz
 18c05ac94a6a3d2e889c8ca9e3ec75e2ce2c821e 5542 chewmail_1.4-1_amd64.buildinfo
Checksums-Sha256:
 5d07a77708cabf626058c68d420dc2fac71741e2a2332702b0c5f37480bd8d67 1802 chewmail_1.4-1.dsc
 48ae7c8c02b9e929b7d46cccdf5d3e86fd5264fa5e4711215a751e3858af68ac 11031 chewmail_1.4.orig.tar.gz
 b10200bcabfedca3682f01b631c8b07711aaa95f59b3ed972ca3c9ee9ec77cbd 1956 chewmail_1.4-1.debian.tar.xz
 73e96caa9e3a81195b68b3a8b3045ab6355727493d661131ecbba839008c9092 5542 chewmail_1.4-1_amd64.buildinfo
Files:
 583513b7529ed8f0a4b1c37f8dbc489c 1802 mail optional chewmail_1.4-1.dsc
 edee065b6b886f5f2b07eb4c7e6843ec 11031 mail optional chewmail_1.4.orig.tar.gz
 d3870f19d4415a23a01d9e465e66eb52 1956 mail optional chewmail_1.4-1.debian.tar.xz
 a2fc942cff94d6ec53b0eb190b32e431 5542 mail optional chewmail_1.4-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEQ88SKPcm/VtHTOliwlb71QAiHpMFAmfFDwYACgkQwlb71QAi
HpNdEhAAk/SF5VaMvAypG/TejWggvIimAmhqZVdcI5JSp5wHg05g0AqBpX4IASfM
AdzzQclrgut+XYvQYs2z4x4a1MDcTA+JlqRykfigmI8NroFptD6JeHilMm51QtAj
RCe/O5O8VJnJ2YwxOXDlvtxSb1iqjejE9OjRSIJcLuuh+KSPXffYWezImz2E1xGv
458zUYSxtYhb1xxKrCjSB9oOSZGDcLhoncqKUOPR6I74F4tD+NHZl/e4HIXCN3pW
Y04pDCAv8mMSowsrWztOa4Y0tVzoMrER2Gsgc/hfjBc350/pq3naNqBnUlmQrkaX
nvoZX79zFaix7hrvtxEZvA5n8ASJJ8sT4WlM9uOeAcREHy3H5R+XP+WiJdmhJhzh
etzsJoX38BSzy/XRFUBm/3QI/oIuiy4gq1yshpyPAww028ipBdJiZ1wk05JQM/Zu
nN40oY//WTvDyzHi6feDOxdT+RN7IavxwXfipX8jdxj4Jw/mF3gySudTFNv1jEkj
6CrNaG0vVHUbA/cR+coaxI19CuE59fA5XyiJQla1KQJiT1JImI/vN2SCiNVhvApn
AEujhw+rah+n7oE9Wp4k9Ff/asEIRJNkl6CaUvJwWDwXi2xeDhEBCfD3r9PNNVO7
HLJd0wrhXs/rZ2z01XvY1H5ep3uEpE6Sqrv4Pb7eqbimZquBpgc=
=cacA
-----END PGP SIGNATURE-----