#3236: mutt: should use /var/tmp for mail drafts by default ------------------------------+--------------------------------------------- Reporter: anto...@dyne.org | Owner: mutt-dev Type: enhancement | Status: new Priority: minor | Milestone: Component: mutt | Version: Keywords: | ------------------------------+--------------------------------------------- Forwarding from http://bugs.debian.org/530584
{{{ By default, mutt stores drafts in /tmp/mutt-$HOSTNAME-$UID-$PID-$REV. /tmp is designed to hold data that isn't guaranteed to be preserved between different invocations of programmes. For practical purposes, and on Debian at least, this translates to files being deleted on every boot, unless TMPTIME is amended in /etc/default/rcS and /tmp is not a tmpfs. This behaviour can cause loss of data, e.g. when the laptop dies or turns itself off due to low power; the user might not have a chance to commit the temporary mail draft s/he was working on to non-volatile storage. I suggest that mutt should use /var/tmp by default for its mail drafts, as that directory is also temporary in nature, but cleaned less frequently than /tmp. More specifically, the FHS dictates that "files and directories located in /var/tmp must not be deleted when the system is booted." Attached are two patches, one for the code and what looks like the source of the documentation (init.h), and another patching the docs, which look like auto-generated content. Thanks for your consideration, }}} -- Ticket URL: <http://dev.mutt.org/trac/ticket/3236> Mutt <http://www.mutt.org/> The Mutt mail user agent