Spam filter check per-message.
This commit is contained in:
@@ -170,11 +170,9 @@ namespace Wino.Mail.ViewModels
|
|||||||
[RelayCommand]
|
[RelayCommand]
|
||||||
private async Task ForceImageLoading()
|
private async Task ForceImageLoading()
|
||||||
{
|
{
|
||||||
forceImageLoading = true;
|
|
||||||
|
|
||||||
if (initializedMailItemViewModel == null && initializedMimeMessageInformation == null) return;
|
if (initializedMailItemViewModel == null && initializedMimeMessageInformation == null) return;
|
||||||
|
|
||||||
await RenderAsync(initializedMimeMessageInformation);
|
await RenderAsync(initializedMimeMessageInformation, ignoreJunkFilter: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
[RelayCommand]
|
[RelayCommand]
|
||||||
@@ -395,8 +393,10 @@ namespace Wino.Mail.ViewModels
|
|||||||
await RenderAsync(mimeMessageInformation);
|
await RenderAsync(mimeMessageInformation);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task RenderAsync(MimeMessageInformation mimeMessageInformation)
|
private async Task RenderAsync(MimeMessageInformation mimeMessageInformation, bool ignoreJunkFilter = false)
|
||||||
{
|
{
|
||||||
|
forceImageLoading = ignoreJunkFilter;
|
||||||
|
|
||||||
var message = mimeMessageInformation.MimeMessage;
|
var message = mimeMessageInformation.MimeMessage;
|
||||||
var messagePath = mimeMessageInformation.Path;
|
var messagePath = mimeMessageInformation.Path;
|
||||||
|
|
||||||
@@ -436,7 +436,7 @@ namespace Wino.Mail.ViewModels
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load images if forced.
|
// Load images if forced.
|
||||||
if (forceImageLoading)
|
if (ignoreJunkFilter)
|
||||||
{
|
{
|
||||||
renderingOptions.LoadImages = true;
|
renderingOptions.LoadImages = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user