Skip to content

docs(sql): document download and available_post_msgs tables - #8942

Open
link2xt wants to merge 1 commit into
mainfrom
link2xt/available_post_msgs-docs
Open

link2xt wants to merge 1 commit into
mainfrom
link2xt/available_post_msgs-docs

Conversation

@link2xt

@link2xt link2xt commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread docs/schema.sql
-- Message-ID of the message scheduled for download.
--
-- In most cases it is a message with Chat-Is-Post-Message header,
-- but may also be a large non-post-message that is automatically postponed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the related code that inserts non-post-messages sometimes:

core/src/imap.rs

Lines 666 to 673 in eb05e0c

info!(context, "{message_id:?} is not a post-message.");
if download_limit.is_none_or(|download_limit| size <= download_limit) {
uids_fetch.push(uid);
uid_message_ids.insert(uid, message_id);
} else {
download_later.push(message_id.clone());
largest_uid_skipped = Some(uid);
}

@link2xt
link2xt marked this pull request as ready for review November 27, 2026 18:44

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant