perlbug--

dgl on 2008-01-02T11:15:47

So I typed a bug out, went to send it and got:

Action (Send/Display/Edit/Subject/Save to File): Send
Are you certain you want to send this message?
Please type "yes" if you are: yes

Sendmail returned status '2'
dgl: ~ %
OK, my fault for not having a working sendmail binary, but still, it could have handled it better. The code has what I feel is quite an important TODO:
# TODO: - Allow the user to re-name the file on mail failure, and
#       make sure failure (transmission-wise) of Mail::Send is
#       accounted for.

Losing bugs that I just spent 10 minutes typing isn't good (although I'll get around to submitting it soon).

Also, it seems the old behaviour was to keep the temp files around but for security reasons if File::Temp is installed it does:

my ($fh, $filename) = File::Temp::tempfile(UNLINK => 1);
(Note the UNLINK.)