This version changes $tmpdraftdir to use the $TMPDIR env var if set,
like $tmpdir.  If unset, it defaults to /var/tmp.

It also updates the mutt.man page and manual to mention $tmpdraftdir in
security notes > temporary files.

Thanks to Fabian for pointing out MacOS wipes /var/tmp on reboot, and
for Claus Assmann for pointing out the same for OpenBSD.  That's a
shame, but I think but I think it's still worth making this change for
those systems that respect the intended use of /var/tmp.

Kevin J. McCarthy (3):
  Remove unused non-buffer tempdir functions.
  Clean up tempdir definitions and file locations.
  Add $tmpdraftdir for composing messages.

 doc/manual.xml.head |  3 ++-
 doc/mutt.man        |  6 ++---
 globals.h           |  1 +
 headers.c           |  2 +-
 init.c              |  1 +
 init.h              | 14 ++++++++++-
 main.c              |  2 +-
 muttlib.c           | 58 ++++++++++++++++-----------------------------
 postpone.c          |  2 +-
 protos.h            | 17 +++++++------
 recvcmd.c           |  6 ++---
 send.c              |  2 +-
 12 files changed, 57 insertions(+), 57 deletions(-)

-- 
2.53.0

Reply via email to