bcosca/fatfree — pull request #144 by KOTRET (2012-10-31 08:10:40+00:00)
Title: fixed last multipart boundary and mime-version according to rfc1521

this fixes false attachment appearing in some clients:

Corrects the MIME-Version header (as there is no "MIME-Typ"-Header, instead in general this means Content-Type).
Additionally closes the connection only if there is one (occurred several times for me, e.g. if an error occurs and the socket is already closed or never opened)