Skip to content

xairoo/imap-cleaner

Repository files navigation

IMAP Inbox & Trash Cleaner

Simple Node.js helper to automatically keep your IMAP inbox and trash folders clean.

Features

  • Inbox cleaner: Moves emails older than x days into an archive folder (e.g., Archive/{YEAR})
  • Trash cleaner: Deletes emails in the trash folder older than x days
  • Can be scheduled with a cron job

Options

  • Set the number of days to keep emails in each folder
  • Optionally skip unseen or flagged emails

Install

  • Clone the repository
  • Install dependencies: npm install

Usage

Create your config files in the /config folder.

To clean your inbox, run:

npm run clean-inbox

# or directly with node:
node clean-inbox.js

To clean your trash folder, run:

npm run clean-trash

# or directly with node:
node clean-trash.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published