Skip to content

Commit

Permalink
Merge pull request #2218 from iserrano76/MDO
Browse files Browse the repository at this point in the history
[MDO] Fix empty subject by sorting on the first to last  message and get first one (oldest should be the original)
  • Loading branch information
iserrano76 authored Nov 6, 2024
2 parents 8b6f352 + 3619394 commit 76895e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M365/MDO/ResendFailedMail.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ if ($failedMessages.count -ge 1000) {
}

if (-not $IncludeDuplicates) {
[array]$failedMessages = $failedMessages | Sort-Object MessageId -Unique
[array]$failedMessages = $failedMessages | Group-Object -Property MessageId | ForEach-Object { $_.Group | Sort-Object -Property Received | Select-Object -First 1 }
}

$verifiedAcceptedSenderMessages = New-Object System.Collections.Generic.List[object]
Expand Down

0 comments on commit 76895e2

Please sign in to comment.