From 86ad896f353a7e73159d5ff08695a7a686f4fcf2 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Tue, 11 Jul 2023 19:10:25 +0200 Subject: [PATCH] Mail: Fetch mailbox contents with BODY.PEEK[] type instead of BODY[] We don't want to mark the entire mailbox as read when checking emails, don't we? :^) --- Userland/Applications/Mail/MailWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/Mail/MailWidget.cpp b/Userland/Applications/Mail/MailWidget.cpp index 198939b3e8..c581994f42 100644 --- a/Userland/Applications/Mail/MailWidget.cpp +++ b/Userland/Applications/Mail/MailWidget.cpp @@ -271,7 +271,7 @@ void MailWidget::selected_mailbox() .sequence_set = { { 1, (int)response.data().exists() } }, .data_items = { IMAP::FetchCommand::DataItem { - .type = IMAP::FetchCommand::DataItemType::BodySection, + .type = IMAP::FetchCommand::DataItemType::PeekBody, .section = IMAP::FetchCommand::DataItem::Section { .type = IMAP::FetchCommand::DataItem::SectionType::HeaderFields, .headers = { { "Subject", "From" } },