Fix a Cursor leak

When cursor is done, the cursor must be closed to avoid cursor leak.

AOSP: https://android-review.googlesource.com/#/c/54993/

Change-Id: I8d837dd50473c3b14806f54ca8a78de14178b0cb
Fix SMTP RFC violation for better interoperability

Space after colon violates RFC 5321 (and RFC 821): "Since it has been a common
source of errors, it is worth noting that spaces are not permitted on either
side of the colon following FROM in the MAIL command or TO in the RCPT command"

Change-Id: Ie5330bf2bd01cd8f734134dadd742cf16df70d7a
Signed-off-by: Jack Bates <jack@nottheoilrig.com>