Avoid (accidental) injection attacks from system(3).
Avoid (accidental) injection attacks from system(3).

Follow Debian convention of MAILER *not* containing -f.
Follow Debian convention of falling back to mutt (cf. erroring out).
Use try/finally to guarantee tempfile is removed.
Pass arguments to mkstemp to generate a more meaningful (but still safely non-predictable) filename.

mattcen/alloc,mattcen/alloc,mattcen/alloc,mattcen/alloc,mattcen/alloc