nextcloud / nextcloud/mail

Expire preview text and AI summaries

Open
#12,860 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop performance 🚀
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Is your feature request related to a problem? Please describe.

As a Nextcloud Mail admin, I want to contain the database usage of my Nextcloud installation. oc_mail_messages has many text columns, which take the bigger share of the table size.

Describe the solution you'd like

Depending on how the user sorts their messages we know what data is hot/cold. Use that as heuristic to find cold rows, and set their preview text and AI summary to null.
Regenerate the data if the user accesses the messages again (via search, scrolling).

Describe alternatives you've considered

N/a

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the referenced PR #12633 and the oc_mail_messages data first. Trace how sorting, search, and scrolling access messages, then define cold-row expiry and regeneration behavior. Done means preview text and AI summaries can be cleared for cold rows and recreated when messages are accessed again, with coverage for those paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
ai, backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.