API Reference
Cmdlet
New-OfficeEmailReaderOptions
Creates bounded EML, MSG, and TNEF reader settings through ordinary PowerShell parameters.
Remarks
Creates bounded EML, MSG, and TNEF reader settings through ordinary PowerShell parameters.
Examples
Read message diagnostics without retaining attachment payloads.
PS>
$options = New-OfficeEmailReaderOptions -ExcludeAttachmentContent -MaxAttachmentBytes 25MB
Get-OfficeEmail -Path .\Message.msg -Options $options -AsResult
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
New-OfficeEmailReaderOptions [-ExcludeAttachmentContent] [-MaxAttachmentBytes <Int64>] [-MaxAttachmentCount <Int32>] [-MaxCompoundDirectoryEntries <Int32>] [-MaxDecodedPropertyBytes <Int64>] [-MaxHeaderBytes <Int32>] [-MaxHeaderCount <Int32>] [-MaxInputBytes <Int64>] [-MaxMapiPropertyCount <Int32>] [-MaxMimeDepth <Int32>] [-MaxNestedMessageDepth <Int32>] [-MaxPartCount <Int32>] [-MaxTnefAttributeCount <Int32>] [-MaxTotalAttachmentBytes <Int64>] [-PreserveRawSource] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- ExcludeAttachmentContent SwitchParameter
- Do not retain decoded attachment payloads in memory.
- MaxAttachmentBytes Int64
- Maximum decoded bytes for one attachment.
- MaxAttachmentCount Int32
- Maximum aggregate attachment count.
- MaxCompoundDirectoryEntries Int32
- Maximum CFB directory entries accepted while reading MSG.
- MaxDecodedPropertyBytes Int64
- Maximum aggregate bytes represented by decoded MSG property streams.
- MaxHeaderBytes Int32
- Maximum bytes allowed in one MIME header section.
- MaxHeaderCount Int32
- Maximum number of header fields in one entity.
- MaxInputBytes Int64
- Maximum artifact size accepted by the reader.
- MaxMapiPropertyCount Int32
- Maximum aggregate MAPI properties across a message and embedded messages.
- MaxMimeDepth Int32
- Maximum nested MIME depth.
- MaxNestedMessageDepth Int32
- Maximum embedded-message recursion depth.
- MaxPartCount Int32
- Maximum MIME entity count.
- MaxTnefAttributeCount Int32
- Maximum number of TNEF attributes.
- MaxTotalAttachmentBytes Int64
- Maximum aggregate decoded attachment bytes.
- PreserveRawSource SwitchParameter
- Retain original artifact bytes for an explicit lossless write.
Outputs
OfficeIMO.Email.EmailReaderOptions