From c6e3c4729eec3aa764e1f6bc086673cacb47a570 Mon Sep 17 00:00:00 2001 From: Scott Bommarito Date: Tue, 30 Oct 2018 16:00:28 -0700 Subject: [PATCH] Do not CC sender for Contact Owners emails --- src/NuGetGallery.Core/NuGetGallery.Core.csproj | 8 ++++---- .../Mail/BackgroundMarkdownMessageService.cs | 6 +++--- src/NuGetGallery/NuGetGallery.csproj | 14 +++++++------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/NuGetGallery.Core/NuGetGallery.Core.csproj b/src/NuGetGallery.Core/NuGetGallery.Core.csproj index 00b6654a50..c901f46416 100644 --- a/src/NuGetGallery.Core/NuGetGallery.Core.csproj +++ b/src/NuGetGallery.Core/NuGetGallery.Core.csproj @@ -203,10 +203,10 @@ - 2.30.0 + 2.31.0 - 2.30.0 + 2.31.0 1.2.0 @@ -242,10 +242,10 @@ 4.8.0 - 2.30.0 + 2.31.0 - 2.30.0 + 2.31.0 7.1.2 diff --git a/src/NuGetGallery/Infrastructure/Mail/BackgroundMarkdownMessageService.cs b/src/NuGetGallery/Infrastructure/Mail/BackgroundMarkdownMessageService.cs index ce47b656c7..49c3daca15 100644 --- a/src/NuGetGallery/Infrastructure/Mail/BackgroundMarkdownMessageService.cs +++ b/src/NuGetGallery/Infrastructure/Mail/BackgroundMarkdownMessageService.cs @@ -30,7 +30,7 @@ public BackgroundMarkdownMessageService( private Func _messageServiceFactory; private bool _sentMessage; - protected override Task SendMessageInternalAsync(MailMessage mailMessage, bool copySender = false, bool discloseSenderAddress = false) + protected override Task SendMessageInternalAsync(MailMessage mailMessage) { // Some MVC controller actions send more than one message. Since this method sends // the message async, we need a new IMessageService per email, to avoid calling @@ -39,7 +39,7 @@ protected override Task SendMessageInternalAsync(MailMessage mailMessage, bool c if (_sentMessage) { var newMessageService = _messageServiceFactory.Invoke(); - return newMessageService.SendMessageInternalAsync(mailMessage, copySender, discloseSenderAddress); + return newMessageService.SendMessageInternalAsync(mailMessage); } else { @@ -55,7 +55,7 @@ protected override Task SendMessageInternalAsync(MailMessage mailMessage, bool c { try { - await base.SendMessageInternalAsync(messageCopy, copySender, discloseSenderAddress); + await base.SendMessageInternalAsync(messageCopy); } catch (Exception ex) { diff --git a/src/NuGetGallery/NuGetGallery.csproj b/src/NuGetGallery/NuGetGallery.csproj index 87ac42dc56..796ba5b68d 100644 --- a/src/NuGetGallery/NuGetGallery.csproj +++ b/src/NuGetGallery/NuGetGallery.csproj @@ -1977,13 +1977,13 @@ 0.15.4 - 2.30.0 + 2.31.0 - 2.30.0 + 2.31.0 - 2.30.0 + 2.31.0 1.2.0 @@ -2210,16 +2210,16 @@ 4.8.0 - 2.30.0 + 2.31.0 - 2.30.0 + 2.31.0 - 2.30.0 + 2.31.0 - 2.30.0 + 2.31.0 1.0.0