Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #241753

Re: Mutt can not delete mails

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: Mutt can not delete mails
Date 2021-10-28 16:40 +0200
Message-ID <DdeJr-87o-7@gated-at.bofh.it> (permalink)
References <DddDH-7sa-5@gated-at.bofh.it> <DddNo-7wr-13@gated-at.bofh.it> <Ddeq5-819-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Oct 28, 2021 at 04:16:58PM +0200, Hans wrote:
> Am Donnerstag, 28. Oktober 2021, 15:38:34 CEST schrieb Greg Wooledge:
> Hi Greg,
> 
> of course I can. This is step-by-step what I do:
> 
> Starting mutt from the commandline as normal user.  Mutt in ncurses appears. 
> Now I want to mark and delete all mails. I press Shift+D, then it asks the for 
> the sample and I press . (dot) and * (asterix). 
> 
> By pressing the "Enter" key all mails are marked ND+.
> 
> Now pressing "q" (for quit) and it asks me "20 as deletion marked mails 
> delete? ([yes]/no):" (Note, I have a German environment, so it asks me in 
> German. This sentence a translated by me).
>  
> I answer yes, and it appears "temporary file could not be created".
> 
> Pressing again "q" and now answer "no", mutt closes.
> 
> Does this help?

OK... that's not what I asked for, but let's see if I can reproduce
it.

I created an account named "tester", and installed procmail, and gave
tester a ~/.qmail file containing "|preline procmail" to force delivery
to /var/mail.  Then I sent a message to it:

unicorn:~$ echo test | mailx -s testing tester

and verified delivery:

tester@unicorn:~$ ls -la /var/mail
total 12
drwxrwsr-x  2 root   mail 4096 Oct 28 10:25 .
drwxr-xr-x 13 root   root 4096 Mar  3  2018 ..
-rw-rw----  1 tester mail  455 Oct 28 10:25 tester

Then fired up mutt as tester:

tester@unicorn:~$ export MAIL=/var/mail/tester
tester@unicorn:~$ mutt

I pressed D . * Enter q y

Mutt exited cleanly, and wrote:

0 kept, 1 deleted.

And now the mailbox is empty:

tester@unicorn:~$ ls -la /var/mail
total 8
drwxrwsr-x  2 root   mail 4096 Oct 28 10:28 .
drwxr-xr-x 13 root   root 4096 Mar  3  2018 ..
-rw-rw----  1 tester mail    0 Oct 28 10:25 tester

This is all acting as I expect.

Is there, perhaps, something in your .muttrc which is changing mutt's
behavior?  You could try repeating your test with the .muttrc file
temporarily renamed, and see if you get the same result.

I'm wondering, in particular, if there is some setting in mutt that
tells it to attempt to delete the inbox file if it reaches 0 messages,
and that perhaps you've enabled it.  If so, you'll want to disable it.

P.S. my system details:

Debian 11 amd64
Linux unicorn 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
package mutt version 2.0.5-4.1
Locally installed (non-Debian) qmail (shouldn't matter here)

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Mutt can not delete mails Hans <hans.ullrich@loop.de> - 2021-10-28 15:30 +0200
  Re: Mutt can not delete mails Greg Wooledge <greg@wooledge.org> - 2021-10-28 15:40 +0200
    Re: Mutt can not delete mails Hans <hans.ullrich@loop.de> - 2021-10-28 16:20 +0200
      Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-10-28 16:30 +0200
      Re: Mutt can not delete mails Greg Wooledge <greg@wooledge.org> - 2021-10-28 16:40 +0200
        Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-10-28 16:50 +0200
          Re: Mutt can not delete mails Hans <hans.ullrich@loop.de> - 2021-10-28 17:50 +0200
          Re: Mutt can not delete mails Hans <hans.ullrich@loop.de> - 2021-10-28 17:50 +0200
            Re: Mutt can not delete mails Greg Wooledge <greg@wooledge.org> - 2021-10-28 18:00 +0200
            Re: Mutt can not delete mails Tixy <tixy@yxit.co.uk> - 2021-10-28 18:20 +0200
              Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-11-04 16:40 +0100
      Re: Mutt can not delete mails Tim Woodall <debianuser@woodall.me.uk> - 2021-10-28 18:20 +0200
        Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-11-04 16:50 +0100
      Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-11-11 21:50 +0100
        Re: Mutt can not delete mails Greg Wooledge <greg@wooledge.org> - 2021-11-11 22:00 +0100
          Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-11-12 03:10 +0100
          Re: Mutt can not delete mails Hans <hans.ullrich@loop.de> - 2021-11-12 19:10 +0100
            Re: Mutt can not delete mails Greg Wooledge <greg@wooledge.org> - 2021-11-12 19:50 +0100
              Re: Mutt can not delete mails Hans <hans.ullrich@loop.de> - 2021-11-12 21:00 +0100
                Re: Mutt can not delete mails Greg Wooledge <greg@wooledge.org> - 2021-11-12 21:10 +0100
                Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-11-13 04:30 +0100

csiph-web