Constructor ExtractedEmailAttachment
- Namespace
- MailFathom.Application.Emails.Extraction
- Assembly
- MailFathom.Application.dll
ExtractedEmailAttachment(AttachmentFileName?, string, long)
Describes one attachment without carrying any of its content.
public ExtractedEmailAttachment(AttachmentFileName? FileName, string MediaType, long DecodedSizeOctets)
Parameters
FileNameAttachmentFileName?The normalized file name, or null when the part is unnamed.
MediaTypestringThe part's media type, for example
application/pdf.DecodedSizeOctetslongHow many octets the part holds after its transfer encoding is decoded, measured by streaming and discarding the content. MIME declares no per-part length, so this is measured rather than read from a header, and the sum over a message's attachments does not equal the message size IMAP reports. A forwarded
message/rfc822part that arrived under a transfer encoding is decoded like any other part; one that arrived unencoded is measured as the parsed message writes itself, which matches the octets it arrived as while the sender used the CRLF line endings mail transport requires.