Prevent downloading existing messages for Outlook.

This commit is contained in:
Burak Kaan Köse
2024-05-25 17:00:52 +02:00
parent b66557f3be
commit 23d0eeab16
7 changed files with 64 additions and 18 deletions

View File

@@ -856,6 +856,7 @@ namespace Wino.Core.Services
return Connection.FindWithQueryAsync<MailAccount>(query);
}
public Task<bool> IsMailExistsAsync(string mailCopyId)
=> Connection.ExecuteScalarAsync<bool>("SELECT EXISTS(SELECT 1 FROM MailCopy WHERE Id = ?)", mailCopyId);
}
}