# SelfArchiver

SelfArchiver is a self-hosted email archiver for homelab users that archives selected IMAP folders using sender, subject, attachment, or age filters and separate schedules, optionally deletes archived mail to keep the. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/7754/selfarchiver

## Description

SelfArchiver is a self-hosted email archiver for homelab users that archives selected IMAP folders using sender, subject, attachment, or age filters and separate schedules, optionally deletes archived mail to keep the mailbox small, and stores .eml files with SQLite full-text search in a single container without an external database.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

50/100 (Fair), based on 3 of 4 factors.
- Maintained: 88 (last commit 6 days ago)
- Popular: 0 (0 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)

## Links

- Unraid: https://ca.unraid.net/apps/selfarchiver-106ld5w0gr875c?q=SelfArchiver
- GitHub: https://github.com/s3lfcod3r/selfarchiver
- Official website: https://www.selfcoder.de

## Common questions

### Can I archive only selected IMAP folders instead of the whole mailbox?

Yes. You can select the folders to archive, refresh the folder list, and optionally include new subfolders.

### What filtering options can decide which mail is archived?

Rules support filters for sender, subject, or recipient contains-any, attachment required, only-read, and exclude-flagged. They can also be limited to mail older than a set number of days or hours.

### Can each archiving rule have its own schedule?

Yes. Each rule can use an hourly, daily, weekly, monthly, or custom cron schedule, and every rule runs independently.

### Does archive-then-delete remove mail before it is safely archived?

No. Deletion happens only after a confirmed archive. You can choose either archive only or archive, then delete from the mailbox.

### Will re-running a rule create duplicate archived messages?

No. A stable per-message key prevents duplicates, so re-running a rule is safe.

### Do I need to run a separate database with SelfArchiver?

No. SQLite and the .eml files are kept in the single container, with full-text search included. No external database is required.

---
Source: Our Local Host (https://ourlocalhost.com/app/7754/selfarchiver), the self-hosted and open-source app directory.
