Exemple #1
0
        internal IMAP_eArgs_GetQuota OnGetUserQuota(IMAP_Session session)
        {
            IMAP_eArgs_GetQuota eArgs = new IMAP_eArgs_GetQuota(session);

            if (this.GetUserQuota != null)
            {
                this.GetUserQuota(session, eArgs);
            }

            return(eArgs);
        }
 private void IMAP_Server_GetUserQuota(object sender,IMAP_eArgs_GetQuota e)
 {
     e.MailboxSize = m_pApi.GetMailboxSize(e.UserName);
     foreach(DataRowView drv in m_pApi.GetUsers("ALL")){
         if(drv["UserName"].ToString().ToLower() == e.UserName.ToLower()){
             e.MaxMailboxSize = ConvertEx.ToInt32(drv["Mailbox_Size"]) * 1000 * 1000;
             break;
         }
     }
 }