[FEATURE] Automatic deletion of mails in the source mailbox after archiving

Open
#24 12 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
32/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
backend, databases

Research direction

The request concerns deleting source mailbox messages after Bichon archives them, optionally after a user-selected age, but it names no files or tests. Start by tracing the IMAP archive flow and how mailbox settings are configured; then identify how successful archival and deletion can be safely coordinated. Done means users can enable the behavior and choose an age threshold, with tests covering the deletion conditions.

Written by the indexing model from the issue text.

Description

enhancement
Description

Similar to more enterprise-ey softwares like Mailstore, it would be very useful to have an option to allow automatic deletion of mails in the source mailbox that have already been archived by Bichon.

Purpose / Use Case

People tend to get close to their maximum quota of free space in their mailboxes. For example, Gmail offers 15GB of space which I'm nearly always using 90% of.
Softwares like Mailstore allow to delete mails in the source mailbox after those mails have been archived, or delete only mails older than X days/weeks/months/years after they were archived.
This allows for users to keep their mailboxes (Gmail and similar hosted ones) at a reasonable size (and also drastically improves the time needed for any mail application to sync my mails, lol).

Additional Information (optional)

I apologize if my feature request is out of the scope of this project!

Dominant language
Rust
Stars
2.1k
Forks
91
Avg merge
14h 54m
Merged PRs (30d)
6

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from rustmailer/bichon

All issues in rustmailer/bichon

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.