melib/imap: unseen counts improvements #337

Merged
Manos Pitsidianakis merged 3 commits from imap-unseen-improve into master 2024-01-01 15:55:05 +02:00

Summary of the PR

Requirements

Before submitting your PR, please make sure you have addressed the following requirements:

  • All commits in this PR are signed (with git commit -s), and the commit has a message describing the motivation behind the change, if appropriate.
  • All added/changed public-facing functionality, especially configuration options, are documented in the manual pages.
  • Any newly added unsafe code is properly documented.
  • Each commit has been formatted with rustfmt. Run make fmt in the project root.
  • Each commit has been linted with clippy. Run make lint in the project root.
  • Each commit does not break any test. Run make test in the project root. If you have cargo-nextest installed, you can run cargo nextest run --all --no-fail-fast --all-features --future-incompat-report instead.
<!-- If your PR is ready to merge/review, remove the `WIP: ` prefix from the title. --> ### Summary of the PR <!-- Changes introduced in this PR. --> ### Requirements Before submitting your PR, please make sure you have addressed the following requirements: * [x] All commits in this PR are signed (with `git commit -s`), and the commit has a message describing the motivation behind the change, if appropriate. * [x] All added/changed public-facing functionality, especially configuration options, are documented in the manual pages. * [x] Any newly added `unsafe` code is properly documented. * [x] Each commit has been formatted with `rustfmt`. Run `make fmt` in the project root. * [x] Each commit has been linted with `clippy`. Run `make lint` in the project root. * [x] Each commit does not break any test. Run `make test` in the project root. If you have `cargo-nextest` installed, you can run `cargo nextest run --all --no-fail-fast --all-features --future-incompat-report` instead.
Manos Pitsidianakis added 3 commits 2024-01-01 14:38:22 +02:00
31401fa35c
melib/backends: add LazyCountSet::contains method
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
e3351d2755
melib/imap: fix set unseen updating all mboxes
When manually setting an envelope as not seen, all mailboxes had their
unseen count increased. This commit updates only those that include the
envelope in the first place.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Run cargo lints / Lint on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (pull_request) Successful in 10m41s Details
Run Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (pull_request) Successful in 17m22s Details
8ddd673dd8
melib/imap/untagged: update all mailboxes
When receiving an envelope event (deleted, or changed flags), update all
mailboxes that contain that envelope hash; not just the currently
selected mailbox.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Manos Pitsidianakis merged commit 8ddd673dd8 into master 2024-01-01 15:55:05 +02:00
Manos Pitsidianakis deleted branch imap-unseen-improve 2024-01-01 15:55:05 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: meli/meli#337
There is no content yet.