Move rcmail::deliver_message() to framework for common use