Code
·
19 lines
·
921 bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19namespace MailSharp.MailClient.Models;
public class MailSettings
{
public int MessageListFetchLimit { get; set; } = 200;
public int MessageListCacheTtlMinutes { get; set; } = 5;
public int ContactMailSearchCacheTtlMinutes { get; set; } = 5;
public int MessageListPageSize { get; set; } = 20;
public int ContactMailsPageSize { get; set; } = 20;
public int SessionIdleTimeoutHours { get; set; } = 24;
public string DataProtectionKeysPath { get; set; } = @"C:\Data\DataProtection\Keys";
public string DefaultImapServer { get; set; } = "127.0.0.1";
public int DefaultImapPort { get; set; } = 993;
public SecurityMode DefaultImapSecurity { get; set; } = SecurityMode.SslTls;
public string DefaultSmtpServer { get; set; } = "127.0.0.1";
public int DefaultSmtpPort { get; set; } = 465;
public SecurityMode DefaultSmtpSecurity { get; set; } = SecurityMode.SslTls;
public int LogRetentionDays { get; set; } = 30;
}