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


Groups > linux.debian.user > #242045

Re: Mutt can not delete mails

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: Mutt can not delete mails
Date 2021-11-12 03:10 +0100
Message-ID <DiuaR-7U7-1@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> <Dipbb-4FX-3@gated-at.bofh.it> <DipkR-4J5-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu 11 Nov 2021 at 15:53:53 (-0500), Greg Wooledge wrote:
> On Thu, Nov 11, 2021 at 02:48:25PM -0600, David Wright wrote:
> > There should be some indication at this point of why it can't
> > delete your emails. The reason you see the filename
> > /home/username/.mutt-cache/scratchpad/mutt-hostname… above is
> > that I have set tmpdir="$HOME/.mutt-cache/scratchpad" in my
> > muttrc file. I use that, rather than /tmp, because it is encrypted
> > along with all of /home. But it means I have to clean it occasionally.
> 
> If mutt normally writes these "temporary files" in /tmp (whaaat, how do
> you guarantee an atomic move from /tmp to /var/mail??) then the OP
> should at least check the perms and ownership of /tmp.
> 
> ls -ld /tmp
> 
> We've seen *so* many people with messed-up /tmp ownership lately.

I assume it does check '$tmpdir'/$TMPDIR, but only when it requires
its use, hence the message. After that, what can it do but give up
syncing? I suppose it could treat deleting /all/ messages as a
special case and truncate the file.

One is warned about security risks with confidentiality from poor
choice of tmpdir. I don't think it ever does a conventional atomic
move (nor do I know the mechanism that one would use without having
write access to the directory). I think it writes it back.

Personally, it doesn't worry me what it does, because all the mail
in my /var/mail/ is ephemeral stuff from APT, cron etc from this
and my other hosts. All my /real/ mail is either on a remote IMAP
server (different mechanism, presumably) or in local mailboxes also
on /home. Therefore the most frequent use for my tmpdir is juggling
files while composing replies.

Cheers,
David.

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