Skip to content

Commit f3fc418

Browse files
updated function with attachment settings (#867)
1 parent 11311e8 commit f3fc418

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/powershell/private/tests-shared/Get-LabelPolicySettings.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ function Get-LabelPolicySettings {
2525
- SiteAndGroupMandatory: Sites/Groups mandatory labeling
2626
- PowerBIMandatory: Power BI mandatory labeling
2727
- DisableMandatoryInOutlook: Email override setting
28+
- AttachmentAction: Email label inheritance from attachments setting
2829
- ParseError: Any error that occurred during parsing
2930
3031
.EXAMPLE
@@ -54,6 +55,8 @@ function Get-LabelPolicySettings {
5455
SiteAndGroupMandatory = $false
5556
PowerBIMandatory = $false
5657
DisableMandatoryInOutlook = $false
58+
# Optional labeling settings
59+
AttachmentAction = $null
5760
# Parsing metadata
5861
ParseError = $null
5962
}
@@ -108,6 +111,10 @@ function Get-LabelPolicySettings {
108111
'disablemandatoryinoutlook' {
109112
$result.DisableMandatoryInOutlook = ($valueLower -eq 'true')
110113
}
114+
# Optional labeling settings
115+
'attachmentaction' {
116+
$result.AttachmentAction = $value
117+
}
111118
default {
112119
Write-PSFMessage "Unknown setting key '$key' in policy '$PolicyName'" -Level Verbose
113120
}

0 commit comments

Comments
 (0)