Automic VaultAutomic Vault

brew

Install imapfilter with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

IMAP message processor/filter. Version 2.8.5 via Homebrew; verified 2026-06-25.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install imapfilter

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install imapfilter

MacPorts ports tree · mail/imapfilter/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add imapfilter

Alpine Linux edge package indexes · imapfilter · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install imapfilter

Debian stable package indexes · imapfilter · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install imapfilter

Fedora Rawhide package metadata · imapfilter · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#imapfilter

nixpkgs package indexes · pkgs/by-name/im/imapfilter/package.nix · source: api.github.com

openSUSE zypperverified · 92%
sudo zypper install imapfilter

openSUSE Tumbleweed package metadata · imapfilter · source: download.opensuse.org

overview

Package summary

IMAP message processor/filter

Commands and aliases

  • imapfilter

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2004: IMAPFilter 1.0 is released.
  • 2007: IMAPFilter 2.0 introduces the long-running 2.x series.
  • 2012: IMAPFilter 2.5 adds session recovery and Lua 5.2 compatibility while making OpenSSL mandatory.
  • 2015: IMAPFilter 2.6 adds Lua 5.3 compatibility and later XOAUTH2 support.
  • 2020: IMAPFilter 2.7 adds Lua 5.4 and PCRE2 compatibility.
  • 2023: IMAPFilter 2.8 adds a new recovery mechanism; 2.8.2 adds UTF-8 IMAP support.
  • 2026: IMAPFilter 2.8.5 re-adds an OAuth2 example in the sample extension file.

Related projects

  • Lua is central to IMAPFilter's configuration and extension model.
  • OpenSSL and PCRE2 are key build-time dependencies named by the project README.
  • Other mail automation tools such as procmail, fetchmail, offlineimap, mbsync, and notmuch occupy adjacent packaging territory, though IMAPFilter focuses on remote IMAP mailbox processing.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 3 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.imapfilter/config.lua

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.imapfilter/config.lua

executables

Installed executables

CommandKindExposureNote
imapfiltercliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version2.8.5
manager updated2026-06-25
local dataok
upstreamcurrent
latest detectedv2.8.5

https://github.com/lefcha/imapfilter

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:imapfilter
Version2.8.5
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/imapfilter
Homepagehttps://github.com/lefcha/imapfilter/
Repositoryhttps://github.com/lefcha/imapfilter
Upstream docshttps://github.com/lefcha/imapfilter#readme
LicenseMIT
Source archivehttps://github.com/lefcha/imapfilter/archive/refs/tags/v2.8.5.tar.gz
Last updated2026-06-25T13:37:45+02:00
Pulseupdated
Dependencieslua, openssl@3, pcre2
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared
CaveatsYou 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 details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameimapfilter
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

imapfilter 1:2.8.2+1-0.2+b1

filter mail in your IMAP account

https://github.com/lefcha/imapfilter

sudo apt install imapfilter
  • Section: mail
  • Architecture: amd64
  • Source Package: imapfilter
  • 4 dependencies
  • normalized package name match
  • Matched by: Imapfilter
Debian stable package indexes · deb.debian.org · Debian stable package indexes: imapfilter from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

imapfilter

nix profile install nixpkgs#imapfilter
  • normalized package name match
  • Matched by: Imapfilter
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/im/imapfilter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

imapfilter 1:2.8.2+1-0.2build2

filter mail in your IMAP account

https://github.com/lefcha/imapfilter

sudo apt install imapfilter
  • Section: universe/mail
  • Architecture: amd64
  • 4 dependencies
  • normalized package name match
  • Matched by: Imapfilter
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: imapfilter from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

imapfilter 2.8.2-r0

Lua-based filtering for IMAP mailboxes

https://github.com/lefcha/imapfilter

sudo apk add imapfilter
  • License: MIT
  • Architecture: x86_64
  • Source Package: imapfilter
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Imapfilter
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: imapfilter from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

imapfilter-doc 2.8.2-r0

Lua-based filtering for IMAP mailboxes (documentation)

https://github.com/lefcha/imapfilter

sudo apk add imapfilter-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: imapfilter
  • normalized package name match
  • Matched by: Imapfilter
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: imapfilter-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

imapfilter 2.8.3-5.fc45

A flexible client side mail filtering utility for IMAP servers

https://github.com/lefcha/imapfilter

sudo dnf install imapfilter
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: imapfilter
  • 7 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Imapfilter
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: imapfilter from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

imapfilter 2.8.5-1.2

A mail filtering utility

https://github.com/lefcha/imapfilter

sudo zypper install imapfilter
  • License: MIT
  • Category: Productivity/Networking/Email/Utilities
  • Architecture: x86_64
  • Source Package: imapfilter
  • 5 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Imapfilter
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: imapfilter from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

imapfilter

sudo port install imapfilter
  • normalized package name match
  • Matched by: Imapfilter
MacPorts ports tree · api.github.com · MacPorts ports tree: mail/imapfilter/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment