Bug 1991156

Summary: Error given on trying to compose outgoing email - suggested fix included
Product: Red Hat Enterprise Linux 8 Reporter: Roger Sewell <roger.sewell>
Component: emacsAssignee: Jacek Migacz <jmigacz>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: fsumsal
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: emacs-26.1-9.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 09:11:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Roger Sewell 2021-08-07 17:34:29 UTC
Description of problem:

Using emacs mh-rmail trying to compose an outgoing email leads to an error because of a non-empty directory that is being deleted. (I'm sorry to say that I found the fix for this in early 2020 but forgot to report it.)

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

Package: emacs-common-1:26.1-5.el8.x86_64 
Files: /usr/share/emacs/26.1/lisp/mh-e/mh-comp.el.gz and ..../mh-comp.elc

Unpackaged necessary utility software: GNU mailutils 3.13 from https://mailutils.org/download.html 

How reproducible: Always

Always

Steps to Reproduce:
1. Download, configure, make, install GNU mailutils 3.13 if not already present.
2. Start emacs, run the command mh-rmail (giving a view of your inbox).
3. Type m 

Actual results:

Error message saying that a (temporary) directory of name starting draftfolder is not empty so cannot be deleted.


Expected results:

Gives you an email to compose.


Additional info:

The error is caused by a file .mu-prop not having been deleted.

It can be fixed by adding the line     

(delete-file (concat temp-folder "/" ".mu-prop"))

before line 929 of /usr/share/emacs/26.1/lisp/mh-e/mh-comp.el.gz 

and then running the emacs command byte-compile on that file to update mh-comp.elc . You will need to exit emacs and restart it to be sure that the updated version gets loaded.

Comment 1 Roger Sewell 2022-07-28 20:33:55 UTC
This bug appears to have been fixed in emacs-1:27.2-6.el9.x86_64 - thank you.

Comment 6 errata-xmlrpc 2023-05-16 09:11:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: emacs security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:3042