Implement relative date filtering to archive only older emails (e.g., > 1 year) #47

Open
opened 2026-04-05 16:16:16 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @dreerr on 2/8/2026

Is your feature request related to a problem? Please describe.
Current synchronization indexes the entire mailbox. For users who only want to use OpenArchiver as a "long-term vault," indexing recent, active emails is redundant and creates search noise alongside their primary mail client.

Describe the solution you'd like
Implement a BEFORE or Maximum Age filter for the synchronization worker. This would allow users to specify a relative offset (e.g., older_than: 1y). The archiver should only fetch and index messages with a Date header preceding this threshold, effectively creating a "lagging" archive that ignores current/active conversations.

Additional context
This is ideal for maintaining a "Cold Storage" instance where the archive only contains finalized, historical data rather than ongoing threads.

*Originally created by @dreerr on 2/8/2026* **Is your feature request related to a problem? Please describe.** Current synchronization indexes the entire mailbox. For users who only want to use OpenArchiver as a "long-term vault," indexing recent, active emails is redundant and creates search noise alongside their primary mail client. **Describe the solution you'd like** Implement a `BEFORE` or `Maximum Age` filter for the synchronization worker. This would allow users to specify a relative offset (e.g., `older_than: 1y`). The archiver should only fetch and index messages with a `Date` header preceding this threshold, effectively creating a "lagging" archive that ignores current/active conversations. **Additional context** This is ideal for maintaining a "Cold Storage" instance where the archive only contains finalized, historical data rather than ongoing threads.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OpenArchiver#47