I had a problem with the command line putting messages into the drafts folder.
I put in this exception to let command line work ok.
+78 send_core.php
Redirect($_GET["page"]."&id=$id");
exit;
# handle commandline
if (! $GLOBALS["commandline"]) {
Redirect($_GET["page"]."&id=$id");
exit;
}