예제 #1
0
        private IEnumerable<Chat> ProcessChats(ImapClient client)
        {
            var folder = client.GetChatsFolder();

            return Enumerable.Range(_startIndex, _stopIndex - _startIndex)
                .Where(i => i < folder.Messages.Count)
                .Select(i => ChatFromImapMessage(folder.Messages[i]));
        }