macOS
brew install imapfilterlocal Homebrew formula metadata
sudo port install imapfilterMacPorts ports tree · mail/imapfilter/Portfile · source: api.github.com
brew
IMAP message processor/filter. Version 2.8.5 via Homebrew; verified 2026-06-25.
install
brew install imapfilterlocal Homebrew formula metadata
sudo port install imapfilterMacPorts ports tree · mail/imapfilter/Portfile · source: api.github.com
sudo apk add imapfilterAlpine Linux edge package indexes · imapfilter · source: dl-cdn.alpinelinux.org
sudo apt install imapfilterDebian stable package indexes · imapfilter · source: deb.debian.org
sudo dnf install imapfilterFedora Rawhide package metadata · imapfilter · source: dl.fedoraproject.org
nix profile install nixpkgs#imapfilternixpkgs package indexes · pkgs/by-name/im/imapfilter/package.nix · source: api.github.com
sudo zypper install imapfilteropenSUSE Tumbleweed package metadata · imapfilter · source: download.opensuse.org
overview
IMAP message processor/filter
history
IMAPFilter is a scriptable command-line IMAP mail processor. Its distinguishing package-manager shape is that the filtering policy is written in Lua, so a small Unix utility becomes a programmable mail-maintenance environment rather than a fixed-rule filter.
IMAPFilter 1.0 was released on May 23, 2004. The project settled into the 2.x line in 2007, and its NEWS file shows steady maintenance around IMAP protocol behavior, mailbox handling, Lua compatibility, TLS/OpenSSL support, and recovery from network failures.
The README describes IMAPFilter as a utility that connects to remote IMAP servers, searches messages, and then deletes, copies, moves, flags, or otherwise processes messages across mailboxes and servers. It documents Lua as both the configuration language and extension language, with manual pages for the command and configuration format.
The project became useful in the niche where users wanted server-side mail triage without running a full mail client or local mail store. Its continued Homebrew formula and release train through the 2.8 series show a long-lived CLI with modest but persistent packaging demand.
The NEWS timeline reflects adaptation to real mail-server drift: TLS 1.1 and 1.2 support in 2013, certificate validation improvements in 2014, XOAUTH2 support in 2015, OpenSSL 3 support in 2022, and UTF-8 IMAP support in 2023.
Users write Lua configuration under the documented IMAPFilter config path, then run the CLI to search remote mailboxes and apply actions. Because credentials can live in the same Lua config, the tool is often treated like a personal automation script with careful file permissions.
Typical package-nerd usage is cron-style mailbox hygiene: delete or move old mail, copy messages between accounts, flag matching messages, or use Lua extensions when ordinary IMAP search expressions are not expressive enough.
IMAPFilter is a classic example of a small C/Unix utility made powerful by embedding a scripting language. For package people, it sits in the same mental drawer as fetchmail, procmail, and notmuch-adjacent mail tools: compact, automatable, and opinionated about text configuration.
Its history is also a reminder that email automation packages age by tracking servers, TLS stacks, authentication methods, and language runtimes. The interesting maintenance work is less feature splash and more staying compatible with IMAP providers and Lua/OpenSSL releases.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.imapfilter/config.luaCredential-bearing paths to review before unattended agent runs.
~/.imapfilter/config.luaexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
imapfilter | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/lefcha/imapfilter
install metadata
| Package key | brew:imapfilter |
|---|---|
| Version | 2.8.5 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/imapfilter |
| Homepage | https://github.com/lefcha/imapfilter/ |
| Repository | https://github.com/lefcha/imapfilter |
| Upstream docs | https://github.com/lefcha/imapfilter#readme |
| License | MIT |
| Source archive | https://github.com/lefcha/imapfilter/archive/refs/tags/v2.8.5.tar.gz |
| Last updated | 2026-06-25T13:37:45+02:00 |
| Pulse | updated |
| Dependencies | lua, openssl@3, pcre2 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
| Caveats | You will need to create a ~/.imapfilter/config.lua file. Samples can be found in: $HOMEBREW_CELLAR/imapfilter/2.8.5/samples |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | imapfilter |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
imapfilter 1:2.8.2+1-0.2+b1
filter mail in your IMAP account
https://github.com/lefcha/imapfilter
sudo apt install imapfilterimapfilter
nix profile install nixpkgs#imapfilterimapfilter 1:2.8.2+1-0.2build2
filter mail in your IMAP account
https://github.com/lefcha/imapfilter
sudo apt install imapfilterimapfilter 2.8.2-r0
Lua-based filtering for IMAP mailboxes
https://github.com/lefcha/imapfilter
sudo apk add imapfilterimapfilter-doc 2.8.2-r0
Lua-based filtering for IMAP mailboxes (documentation)
https://github.com/lefcha/imapfilter
sudo apk add imapfilter-docimapfilter 2.8.3-5.fc45
A flexible client side mail filtering utility for IMAP servers
https://github.com/lefcha/imapfilter
sudo dnf install imapfilterimapfilter 2.8.5-1.2
A mail filtering utility
https://github.com/lefcha/imapfilter
sudo zypper install imapfilterimapfilter
sudo port install imapfiltersource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.