1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:07:45 +00:00

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? :^)
This commit is contained in:
Karol Kosek 2023-07-11 19:10:25 +02:00 committed by Sam Atkins
parent 2132e0f1bb
commit 86ad896f35

View file

@ -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" } },