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
commit 86ad896f35
Notes: sideshowbarker 2024-07-17 10:39:39 +09:00

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