Prevent downloading existing messages for Outlook.
This commit is contained in:
@@ -77,5 +77,13 @@ namespace Wino.Core.Domain.Interfaces
|
||||
/// <param name="uniqueMailId">Unique id of the mail item.</param>
|
||||
/// <returns>Account that mail belongs to.</returns>
|
||||
Task<MailAccount> GetMailAccountByUniqueIdAsync(Guid uniqueMailId);
|
||||
|
||||
/// <summary>
|
||||
/// Checks whether the given mail copy id exists in the database.
|
||||
/// Safely used for Outlook to prevent downloading the same mail twice.
|
||||
/// For Gmail, it should be avoided since one mail may belong to multiple folders.
|
||||
/// </summary>
|
||||
/// <param name="mailCopyId">Native mail id of the message.</param>
|
||||
Task<bool> IsMailExistsAsync(string mailCopyId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user