Table of Contents

Method ReportRefusedCredentialAsync

Namespace
MailFathom.Application.Notifications
Assembly
MailFathom.Application.dll

ReportRefusedCredentialAsync(MailAccountId, CancellationToken)

Reports an account whose credential the mail server refused.

public Task<bool> ReportRefusedCredentialAsync(MailAccountId account, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account the server refused.

cancellationToken CancellationToken

Cancels the raise.

Returns

Task<bool>

true when a notification was kept.

Remarks

This is the condition the deduplication rule exists for. A refused credential is refused again on every run until somebody replaces it, so the statement is made once and stays made until it has been read.