Ejemplo n.º 1
0
        private void GetFolderList()
        {
            subscribeStatus.Clear();
            tvFolders.Items.Clear();
            lvMessages.Items.Clear();

            edtSubscribed.Text  = "";
            edtAll.Text         = "";
            edtRecent.Text      = "";
            edtFirstUnseen.Text = "";

            string[] mailboxes = imap41.GetMailBoxes();

            string[] subscribed = imap41.GetSubscribedMailBoxes();

            for (int i = 0; i < mailboxes.Length; i++)
            {
                string item = mailboxes[i].ToString();
                tvFolders.Items.Add(item);
                subscribeStatus.Add(item, (Array.IndexOf(subscribed, item) > -1));
            }
        }
Ejemplo n.º 2
0
        private void FillFolderList()
        {
            tvFolders.Items.Clear();
            lvMessages.Items.Clear();

            edtFrom.Text    = "";
            edtSubject.Text = "";
            memBody.Text    = "";

            string[] mailboxes = imap41.GetMailBoxes();

            for (int i = 0; i < mailboxes.Length; i++)
            {
                string item = mailboxes[i].ToString();
                tvFolders.Items.Add(item);
            }
        }
Ejemplo n.º 3
0
        private void FillFolderList()
        {
            tvFolders.Items.Clear();
            lvMessages.Items.Clear();

            ClearMessage();

            string[] mailboxes = imap.GetMailBoxes();

            for (int i = 0; i < mailboxes.Length; i++)
            {
                string item = mailboxes[i].ToString();

                if (string.Compare("[Gmail]", item) != 0)
                {
                    tvFolders.Items.Add(item);
                }
            }
        }