sendout.c: fix HAVE_DEBUG From_ quoting..
commitbd6090d11af87bfa4a5f92f41730f73fe3f96950
authorSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Mon, 5 Sep 2016 14:53:45 +0000 (5 16:53 +0200)
committerSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Mon, 19 Sep 2016 15:43:11 +0000 (19 17:43 +0200)
tree71b90358d9f9c3173f2b077f788f477e11e8a8f2
parent2631cf803f6ee621c4b0a8a47a2af138640a6814
sendout.c: fix HAVE_DEBUG From_ quoting..

Rename __savemail() to a_sendout__savemail() and rewrite it a bit.

If we resend a message then we (at least: yet) don't reevaluate
it's contents for real, so if a user resends a message that was
produced by a MUA which doesn't force MIME encoding when there is
"From " in a message body, then (with *record-resent*) we need to
MBOXO quote the message if we save it in *record*.
Sofar i had a HAVE_DEBUG assertion which did _not_ do it, but the
regular user shipout code always did.

Also there was a resource leak in the error path.  The file would
have been cleaned up when the command loop ticks, though.
sendout.c