Method AcrossAccountsOfAsync
- Namespace
- MailFathom.Application.SensitiveContent
- Assembly
- MailFathom.Application.dll
AcrossAccountsOfAsync(UserId, CancellationToken)
Finds what a read spanning every account one user is assigned is scanned under.
Task<SensitiveContentPosture> AcrossAccountsOfAsync(UserId user, CancellationToken cancellationToken)
Parameters
userUserIdThe user whose mail is about to be handed out.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<SensitiveContentPosture>
The strictest posture over their accounts, which scans nothing where none of them switched anything on.
Remarks
For a read that resolves a user and then hands out mail from whichever of their accounts matched — a search, a timeline, a question answered from a mailbox — where the value being guarded is several layers below the point the account could still be named. Composing the strictest of them is the safe direction: a message is scanned under at least what its own account asked for, and a scanner another of the user's accounts switched on only ever redacts more.