private Dictionary<StatType, int[]> getDateStatistics(IMAPFolder folder, List<StatType> statTypes, string subject)
        {
            IMAPSearchQuery sq = new IMAPSearchQuery();
            sq.Subject = subject;
            IMAPSearchResult result = folder.Search(sq);

            Dictionary<StatType, int[]> retVal = base.GetDateStatistics<IMAPMessage>(statTypes, result.Messages, "Date");

            return retVal;
        }
        private Dictionary<string, int> getUserStatistics(IMAPFolder folder, string subject)
        {
            IMAPSearchQuery sq = new IMAPSearchQuery();
            sq.Subject = subject;
            IMAPSearchResult result = folder.Search(sq);

            Dictionary<string, int> retVal = base.GetUserSatistics<IMAPMessage, IMAPMailAddress>(result.Messages, "From", "Address");

            return retVal;
        }
        private List<Mail> convertMessagesToCollection(string subject, IMAPFolder folder)
        {
            IMAPSearchQuery sq = new IMAPSearchQuery();
            sq.Subject = subject;
            IMAPSearchResult result = folder.Search(sq);

            List<Mail> retVal = new List<Mail>();

            foreach (IMAPMessage m in result.Messages)
            {
                retVal.Add(convertToMail(m));
            }

            return retVal;
        }