public MailData(Base.SettingsServer settings) : base(settings.ProfileFolder) { try { Settings = settings; ProfileSettings = new ServerProfileSettings(Settings.ProfileFolder); PeopleData = new PeopleData(this); } catch (System.Exception ex) { GenLib.Log.LogService.LogException("Error in MailData constructor: ", ex); } }
public void InitValues(ServerProfileSettings sett = null) { GeneralMaxSuggPrefixLen = sett != null ? sett.GeneralMaxSuggPrefixLen : 5; // when building the suggestion dictionary, what is the maximum number of chars that we use to build the dictionary GeneralMaxSuggItemCount = sett != null ? sett.GeneralMaxSuggItemCount : 20; // when building the suggestion dictionary, what is the maximum number of suggestions for each prefix MinerUpdateThreadBow = sett != null ? sett.MinerUpdateThreadBow : false; MinerUpdateNGrams = sett != null ? sett.MinerUpdateNGrams : true; MinerNGramsIgnoreSw = sett != null ? sett.MinerNGramsIgnoreSw : true; MinerMxNGramLen = sett != null ? sett.MinerMxNGramLen : 4; MinerMxCachedNGrams = sett != null ? sett.MinerMxCachedNGrams : 1000000; MinerIndexCacheSizeMB = sett != null ? sett.MinerIndexCacheSizeMB : 512; MinerItemCacheSizeMB = sett != null ? sett.MinerItemCacheSizeMB : 512; PeopleRoles = sett != null ? sett.PeopleRoles : "from,to,cc,bcc,author"; }