From 349cfacdca7d5a53672f9720cf120da26c4f985c Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 17 Apr 2023 04:06:29 +0300 Subject: [PATCH] Rename `CC` to `Cc` --- src/NzbDrone.Core/Notifications/Email/Email.cs | 2 +- .../Notifications/Email/EmailSettings.cs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Email/Email.cs b/src/NzbDrone.Core/Notifications/Email/Email.cs index 042d7ecb7..5bbb76867 100644 --- a/src/NzbDrone.Core/Notifications/Email/Email.cs +++ b/src/NzbDrone.Core/Notifications/Email/Email.cs @@ -75,7 +75,7 @@ namespace NzbDrone.Core.Notifications.Email email.From.Add(ParseAddress("From", settings.From)); email.To.AddRange(settings.To.Select(x => ParseAddress("To", x))); - email.Cc.AddRange(settings.CC.Select(x => ParseAddress("CC", x))); + email.Cc.AddRange(settings.Cc.Select(x => ParseAddress("CC", x))); email.Bcc.AddRange(settings.Bcc.Select(x => ParseAddress("BCC", x))); email.Subject = subject; diff --git a/src/NzbDrone.Core/Notifications/Email/EmailSettings.cs b/src/NzbDrone.Core/Notifications/Email/EmailSettings.cs index 3601f3e01..ad386b57a 100644 --- a/src/NzbDrone.Core/Notifications/Email/EmailSettings.cs +++ b/src/NzbDrone.Core/Notifications/Email/EmailSettings.cs @@ -16,13 +16,13 @@ namespace NzbDrone.Core.Notifications.Email RuleFor(c => c.Port).InclusiveBetween(1, 65535); RuleFor(c => c.From).NotEmpty(); RuleForEach(c => c.To).EmailAddress(); - RuleForEach(c => c.CC).EmailAddress(); + RuleForEach(c => c.Cc).EmailAddress(); RuleForEach(c => c.Bcc).EmailAddress(); // Only require one of three send fields to be set - RuleFor(c => c.To).NotEmpty().Unless(c => c.Bcc.Any() || c.CC.Any()); - RuleFor(c => c.CC).NotEmpty().Unless(c => c.To.Any() || c.Bcc.Any()); - RuleFor(c => c.Bcc).NotEmpty().Unless(c => c.To.Any() || c.CC.Any()); + RuleFor(c => c.To).NotEmpty().Unless(c => c.Bcc.Any() || c.Cc.Any()); + RuleFor(c => c.Cc).NotEmpty().Unless(c => c.To.Any() || c.Bcc.Any()); + RuleFor(c => c.Bcc).NotEmpty().Unless(c => c.To.Any() || c.Cc.Any()); } } @@ -34,7 +34,7 @@ namespace NzbDrone.Core.Notifications.Email { Port = 587; To = Array.Empty(); - CC = Array.Empty(); + Cc = Array.Empty(); Bcc = Array.Empty(); } @@ -60,7 +60,7 @@ namespace NzbDrone.Core.Notifications.Email public IEnumerable To { get; set; } [FieldDefinition(7, Label = "CC Address(es)", HelpText = "Comma separated list of email cc recipients", Placeholder = "example@email.com,example1@email.com", Advanced = true)] - public IEnumerable CC { get; set; } + public IEnumerable Cc { get; set; } [FieldDefinition(8, Label = "BCC Address(es)", HelpText = "Comma separated list of email bcc recipients", Placeholder = "example@email.com,example1@email.com", Advanced = true)] public IEnumerable Bcc { get; set; }