# 使用 Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper 安装 mairix

查看 mairix 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mairix
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mairix
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mairix
```

  证据: MacPorts ports tree: mail/mairix/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install mairix
```

  证据: Debian stable package indexes: mairix from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install mairix
```

  证据: Fedora Rawhide package metadata: mairix from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#mairix
```

  证据: nixpkgs package indexes: pkgs/by-name/ma/mairix/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S mairix
```

  证据: Arch Linux sync databases: mairix from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install mairix
```

  证据: openSUSE Tumbleweed package metadata: mairix from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:mairix
- **软件包管理器:** Homebrew
- **版本:** 0.24
- **来源摘要:** Email index and search tool
- **主页:** <https://github.com/vandry/mairix>
- **仓库:** <https://github.com/vandry/mairix>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mairix (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.24
## 项目历史与用法

mairix is a command-line indexer and search tool for email collections stored in Maildir, MH, MMDF, mbox, and later IMAP-backed folders.

### 项目历史

The official README identifies Richard P. Curnow as the original author and dates the original copyright period to 2002-2004. It also says Kim Vandry has maintained the project since 2017, matching the current GitHub repository location.

The NEWS file shows mairix growing from a local maildir/MH search tool into a broader mail search utility. Version 0.4 added MH folder support, 0.12 added mbox indexing and output, 0.17 notes a migration to Git for revision control, and version 0.24 added remote IMAP folder support.

### 采用历史

Upstream positions mairix as a complement to mail readers such as mutt and Sylpheed, because searches produce a match folder that normal mail clients can open. That workflow made mairix attractive to users who wanted fast local search without changing their main terminal mail client.

The README notes a mairix-users mailing list available since July 2006, and the ACKNOWLEDGEMENTS file lists a broad patch and suggestion history. That is modest, but real, evidence of a small long-lived user and contributor community.

### 使用方式

mairix indexes configured mail folders into a database, then search mode creates a match folder containing symlinks or copied messages, depending on the source and result folder formats. It can also print raw matches or excerpts for scripts.

Configuration lives in $HOME/.mairixrc unless overridden with -f or --rcfile. The mairixrc manual documents required base, mfolder, database, and folder directives, plus optional IMAP settings including imap_username and imap_password.

### 为什么软件包爱好者会关心

mairix is a classic small Unix mail tool: narrow job, plain text configuration, fast incremental indexing, and output designed to compose with existing mail clients. It is especially notable for supporting several old mailbox formats without insisting on a new mail store.

For package maintainers, mairix sits in the same ecosystem as mutt, MH/nmh-style folders, Sylpheed, Claws Mail, and Gnus. Its value is less about being a full mail app and more about being the search engine you can bolt onto one.

### 时间线

- 2002-2004: Original Richard P. Curnow copyright period documented in README.
- 2006: mairix-users mailing list is documented as available since July 2006.
- 2007: NEWS for version 0.17 notes migration to Git revision control.
- 2017: README says maintenance passed to Kim Vandry; GitHub release 0.24 is dated August 13, 2017.

### Related projects

- mutt is named by the README as a useful companion mail program.
- Sylpheed is named by the README as a useful companion mail program.
- Claws Mail, Evolution, Gnus, and xmh appear in the manpage as supported MH-family folder variants.

### 来源

- <https://github.com/vandry/mairix>
- <https://raw.githubusercontent.com/vandry/mairix/master/ACKNOWLEDGEMENTS>
- <https://raw.githubusercontent.com/vandry/mairix/master/NEWS>
- <https://raw.githubusercontent.com/vandry/mairix/master/README>
- <https://raw.githubusercontent.com/vandry/mairix/master/mairix.1>
- <https://raw.githubusercontent.com/vandry/mairix/master/mairixrc.5>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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

- Unix: ~/.mairixrc

## Credential files

- Unix: ~/.mairixrc
## 其他软件包管理器记录

- Debian apt - mairix - 0.24-2: normalized package name match | Debian stable package indexes: mairix from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | indexes and searches locally-stored email | https://github.com/vandry/mairix
- Nix - mairix: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mairix/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mairix - 0.24-2: normalized package name match | Ubuntu 24.04 LTS package indexes: mairix from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | indexes and searches locally-stored email | https://github.com/vandry/mairix
- dnf - mairix - 0.24-24.20220920git1cc06f.fc45: normalized package name match | Fedora Rawhide package metadata: mairix from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A program for indexing and searching email messages | http://www.rc0.org.uk/mairix
- pacman - mairix - 0.24-5: normalized package name match | Arch Linux sync databases: mairix from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A program for indexing and searching emails | https://github.com/vandry/mairix
- zypper - mairix - 0.24-1.34: normalized package name match | openSUSE Tumbleweed package metadata: mairix from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A maildir indexer and searcher | http://www.rc0.org.uk/mairix/
- MacPorts - mairix: normalized package name match | MacPorts ports tree: mail/mairix/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/mairix.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mairix.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
