mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-19 23:28:23 -04:00
Add support for download attachments from SpamOK (#151)
This commit is contained in:
@@ -233,7 +233,7 @@
|
||||
if (IsSpamOk)
|
||||
{
|
||||
var client = HttpClientFactory.CreateClient("EmailClient");
|
||||
var response = await client.GetAsync($"https://api.spamok.com/v2/Email/{Email!.ToLocal}/{Email.Id}/attachments/{attachment.Id}");
|
||||
var response = await client.GetAsync($"https://api.spamok.com/v2/Attachment/{Email!.Id}/{attachment.Id}/download");
|
||||
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user