Re: [PATCH v2 0/3] Create and use $tmpdraftdir for composing

"Kevin J. McCarthy" <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <abKSCHlswoV_AWj9@qinghai>
On Thu, Mar 12, 2026 at 03:47:14PM +0800, Kevin J. McCarthy wrote:
>On Thu, Mar 12, 2026 at 03:33:37PM +0800, Kevin J. McCarthy wrote:
>>It seemed to me that if mutt's $tmpdir already defaulted to $TMPDIR, 
>>and we wanted to distinguish $tmpdraftdir as a more persistent 
>>temporary place, it made sense to not also set it to the env var by 
>>default when set.
>>
>>So my thinking was defaulting it to the non-volatile "/var/tmp", but 
>>the user can just as easily set it to something else in their 
>>muttrc.
>
>Note, it's okay to tell me this is a dumb idea.  I'm not adamant about 
>it, and perhaps you're right that if they set the env var, we should 
>listen to them for both of the configs.

I mulled it over during dinner, and I'll save you from having to say it. 
:-)

I think you and Raf are right.  If someone sets $TMPDIR, then that's 
where they want temp files to go, and we should respect it.

I'll wait a bit for other feedback, and if there isn't any, will email 
out a v3 patch set with that change along with some documentation 
updates that Raf suggested on gitlab.

Thanks Rene and Raf!

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmmykggACgkQre92hIAx
a9r9uxAA2sUD07O7snuG3DhbPEevjErIXWHs260sz+XWnxueaikTAm9eTeOCK+J9
rinCR4xN9bqRcOOQvGGvWYYGikXiw8svF/9AkMC/dRGdcCQLW270m0nNKCHyYYx0
KtbZ4+Y5BnETqxBKM+a4rxMzzTehj6ukPihPTpBxLVlPJYYWGN8YvavOBo5llVOg
tVlUstGr0e3fQn0qm+454gl4/fIvId0d35W6sAZCcZvbNGrCX7qaXN5jBssi6pkI
Fmy4pWaRSdx/1SbSlQDP3WWH9st4gdCUN0Ge9yqZxIseSkETk9++tzR6GkiCtyUg
Sswyr/lYMVoVM3IUUT6nI5IV27D5IjIQhKvl+3xAspJPeTkukoLDLaEezb4KmRH5
HtziBUyKFA813qh06Es1MKxZPiwVBjp3GhazKcFaKa9MZ2ZvVEZxm8wFf7YBT0Ng
VjdHBl7d93UlFJ+tArD0TQPx4DjOvDOCGjn5RGdRMQa82WKMkzLJYL0MjaNNAcf1
qlmBUccArixQA8NNgajcUdpjHe+Yvvf+bJ+TodGw8QMcrePrSZiC10tqewEJnVZv
nKELJcEAJp+FGgDWLRk8xIHzEukbtpzVFxMRSbbjmz5CETMgBE8iLGlFJwNs3mdj
jlSfmAJtAkNbuJu/yc6bld3VeooulBt0Cc6KwKItK7jA6uwDOi4=
=u7rh
-----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.