---
title: "Apply repeatable IMAP rules to triage and clean inboxes with imapfilter"
description: "Route, label, and clean routine email traffic with scripted IMAP rules instead of doing the same inbox chores by hand."
verification: "listed"
source: "https://github.com/lefcha/imapfilter"
author: "lefcha"
publisher_type: "individual"
category:
  - "Calendar, Email & Productivity"
framework:
  - "Multi-Framework"
tool_ecosystem:
  github_repo: "lefcha/imapfilter"
  github_stars: 917
---

# Apply repeatable IMAP rules to triage and clean inboxes with imapfilter

Route, label, and clean routine email traffic with scripted IMAP rules instead of doing the same inbox chores by hand.

## Prerequisites

IMAP account credentials, imapfilter installation, Lua rule configuration, network access to mail servers

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Install imapfilter from the upstream package or build path, define mailbox rules in its Lua configuration format, then run it against the target IMAP accounts to apply the scripted actions.
```

## Documentation

- https://github.com/lefcha/imapfilter

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/apply-repeatable-imap-rules-to-triage-and-clean-inboxes-with-imapfilter/)
