public bool HasEnoughQuota(string sFolderName)
{
try
{
bool bUnlimitedQuota = false;;
int nUsedKBytes = 0;
int nTotalKBytes = 0;
GetQuota(sFolderName, ref bUnlimitedQuota,
ref nUsedKBytes, ref nTotalKBytes);
if (bUnlimitedQuota || (nUsedKBytes < nTotalKBytes))
return true;
else
return false;
}
catch (ImapException e)
{
throw e;
}
}