Re: [PATCH 3/4] Add $tmpdraftdir for composing messages.

Fabian Groffen via Mutt-dev <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <[email protected]>
On 11-03-2026 17:18:35 +0800, Kevin J. McCarthy wrote:
> On Wed, Mar 11, 2026 at 09:14:51AM +0100, [email protected] wrote:
> >shouldn't the default be rather ~/.mutt/ or ~/.cache/mutt ?
> 
> This was discussed in the ticket 
> (https://gitlab.com/muttmua/mutt/-/issues/65).
> 
> There were various ideas, but in the end /var/tmp seemed to be the best 
> compromise.  They are basically temp files that we want to survive a 
> reboot.

Just FYI /var/tmp is wiped on every reboot on macOS.  I switched to
~/.cache/mutt because re-downloading the headers from a certain provider
can take several hours in which Mutt cannot be used for anything else.

And of course make it a directory to benefit from per-folder dbs.

That said I don't want to re-iterate or re-open the discussion, but I
think it would be helpful to designate header cache as something that's
more of a db thing than cache in user documentation, and to nudge
towards it being a directory instead of a file too.

Thanks,
Fabian

> 
> >We dont want other users to read our drafts. The same argument applies 
> >for all temp files created by mutt.
> 
> They won't be.  umask is 077 in mutt.
> 
> -- 
> Kevin J. McCarthy
> GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 265 B)
-----BEGIN PGP SIGNATURE-----

iJEEABYKADkWIQTVZ7uEvqwb4Fv6o7r1Tg7q2DMGLwUCabE1dRsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMSwwLDMACgkQ9U4O6tgzBi8eEwD+Pf7rUFkbGkXbp4BgJPWN
1AzXQZG4Rqt/7OEUAb+pj0IA/j4Lc/k5XPTKAOKe8KkYZMjc+P3GMoQEjzEBewtz
DQEB
=iGWK
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.