On Wed, Mar 11, 2026 at 06:57:11PM +0800, Kevin J. McCarthy wrote: > I squished the 3rd and 4th commit together. > > I also added the cases from the attachment menu (forwarding and replying) > that generate a tempfile and pass it in.
Quickly tested on OpenBSD 7.8, seems to work. I'm not convinced this is worth the effort and extra code, but I'm OK with it if Kevin wants to have it. That being said, without that patch mutt will respect TMPDIR when creating the draft file. With the patches applied TMPDIR is ignored. This might break existing workflows. Also as /var/tmp is not defined by POSIX yet, are we really sure it will exist on all systems? > Kevin J. McCarthy (3): > Remove unused non-buffer tempdir functions. > Clean up tempdir definitions and file locations. > Add $tmpdraftdir for composing messages. > > globals.h | 1 + > headers.c | 2 +- > init.h | 10 +++++++++- > main.c | 2 +- > muttlib.c | 58 +++++++++++++++++++----------------------------------- > postpone.c | 2 +- > protos.h | 17 +++++++++------- > recvcmd.c | 6 +++--- > send.c | 2 +- > 9 files changed, 47 insertions(+), 53 deletions(-) > > -- > 2.53.0 >
