Bug 68272 - Unable to delete messages in mutt
Unable to delete messages in mutt
Status: CLOSED DUPLICATE of bug 67552
Product: Red Hat Public Beta
Classification: Retired
Component: mutt (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Depends On:
  Show dependency treegraph
Reported: 2002-07-08 15:54 EDT by W. Michael Petullo
Modified: 2014-03-16 22:28 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-07-09 12:05:37 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description W. Michael Petullo 2002-07-08 15:54:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020625

Description of problem:
When I try to quit mutt after I mark a message for deletion, mutt prints the
following error:

Write failed!  Saved partial mailbox to /tmp/mutt.xxxx-xxxx-xxxx

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.  Run mutt.
2.  Tag a message to be deleted
3.  Quit mutt.

Actual Results:  The message is not deleted; mutt says:

Write failed!  Saved partial mailbox to /tmp/mutt.xxxx-xxxx-xxxx

Expected Results:  The message should be deleted, updating the corresponding

Additional info:

The problem seems to be in the file mbox.c.  Around line mbox.c:908, several
checks are made to ensure the mailbox is sane:

if (fseek (ctx->fp, offset, SEEK_SET) != 0 ||  /* seek the append location */      
      /* do a sanity check to make sure the mailbox looks ok */
      fgets (buf, sizeof (buf), ctx->fp) == NULL ||
      (ctx->magic == M_MBOX && mutt_strncmp ("From ", buf, 5) != 0) ||
      (ctx->magic == M_MMDF && mutt_strcmp (MMDF_SEP, buf) != 0) ||
      (ctx->magic == M_KENDRA && mutt_strcmp (KENDRA_SEP, buf) != 0))

The fgets in this check fails on my system.  If I stick a perror in the code
following the fgets, it prints "No such file or directory."  Because this check
fails, i is set to -1, causing the error message to be printed around line

This "No such file or directory" error from fgets is strange.  None of the other
operations on ctx->fp fail, including the open operations.  Could there be a bug
in glibc?  Probably not.

I am having more trouble finding the source of this problem than I expected.  I
will update this bug report as I discover more.
Comment 1 W. Michael Petullo 2002-07-08 15:57:02 EDT
I still have these problems if I downgrade the mutt rpm on my system from the
limbo version (which has never worked) to the 7.3 version (which used to work
with 7.3).  This seems to support my theory that the problem is in a library
(glibc?), not mutt.
Comment 2 W. Michael Petullo 2002-07-09 04:00:41 EDT
Same as bug 67552, which has had more activity.
Comment 3 W. Michael Petullo 2002-07-09 12:05:33 EDT
I downgraded to 7.3's glibc, 2.2.5, and mutt now works fine.  Everything on my
system is limbo now except for glibc, glibc-common, and glibc-devel.
Comment 4 Bill Nottingham 2002-07-09 15:35:23 EDT

*** This bug has been marked as a duplicate of 67552 ***

Note You need to log in before you can comment on or make changes to this bug.