Class EmailContentReadOptions
- Namespace
- MailFathom.Application.EmailContent
- Assembly
- MailFathom.Application.dll
Bounds what one read of message content may return.
public sealed class EmailContentReadOptions
- Inheritance
-
EmailContentReadOptions
- Inherited Members
Remarks
The bound is separate from the one extraction applies to the text it indexes, because the two protect different things. The indexing bound exists so a generated search vector stays writable; these exist so a single response cannot overflow the context of whatever is reading it, and so a body that reaches this system through no limit of its own reaches a reader through one.
Two bounds rather than one, because a call names several emails and the count and the volume are different controls. Without the second, ten emails could each return the first bound in full; without the first, one enormous message could spend a whole call's budget before the second email was reached.
Attachments are bounded by neither, because a read returns none of their octets: what a caller receives for a file is a link to fetch it, whose size is the same few hundred characters whatever the file weighs. The only bound an attachment is subject to is the one that decided whether its message was stored at all.
Properties
- MaxBodyCharacters
Gets or sets the greatest number of characters one body representation returns.
- MaxCharactersPerRead
Gets or sets the greatest number of body characters one call returns across every email it names.