// Caller responsible to delete.
OTLedger * OTAccount::LoadInbox(OTPseudonym & theNym)
{
	OTLedger * pBox = new OTLedger(GetUserID(), GetRealAccountID(), GetRealServerID());
	OT_ASSERT(NULL != pBox);

	if (pBox->LoadInbox() && pBox->VerifyAccount(theNym))
	{
		return pBox;
	}
	else
	{
		OTString strUserID(GetUserID()), strAcctID(GetRealAccountID());

		OTLog::vOutput(2, "Unable to load or verify inbox:\n%s\n For user:\n%s\n",
					   strAcctID.Get(), strUserID.Get());
	}

	return NULL;
}