Constructor MailboxExportFolder
- Namespace
- MailFathom.Application.Mail.Export
- Assembly
- MailFathom.Application.dll
MailboxExportFolder(string, IReadOnlyList<string>, bool)
One folder as an export sees it: what an operator names it by, and what the archive lays it out from.
public MailboxExportFolder(string Path, IReadOnlyList<string> Segments, bool IsInbox)
Parameters
PathstringThe folder's path in the words an operator reads and writes, segments joined by
/.SegmentsIReadOnlyList<string>The same path as its own segments, outermost first, exactly as the account holds them.
IsInboxboolWhether this is the account's inbox, which the Maildir++ layout writes at the archive root.
Remarks
One shape for both kinds of account. A held account's folders are MailFathom's own hierarchy and their segments are that hierarchy's; a mirrored account's are the aliases configuration gave its mapped folders, which have one segment each. Neither the source's own path nor its delimiter reaches the archive, because a remote path is a fact about a server the archive is being carried away from.
Path is what a caller names to export one folder, and what the measurement reports each row under, so the two cannot disagree about which folder was meant.