# 使用 Homebrew, apk, MacPorts, Nix, pacman 安装 goimapnotify

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

## 安装

```sh
sudo av install brew:goimapnotify
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install goimapnotify
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install goimapnotify
```

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

### Linux

- apk (92%):

```sh
sudo apk add goimapnotify
```

  证据: Alpine Linux edge package indexes: goimapnotify from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#goimapnotify
```

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

- pacman (92%):

```sh
sudo pacman -S goimapnotify
```

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

## 软件包事实

- **软件包键:** brew:goimapnotify
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/goimapnotify>
- **版本:** 2.5.6
- **来源摘要:** Execute scripts on IMAP mailbox changes using IDLE
- **主页:** <https://gitlab.com/shackra/goimapnotify>
- **仓库:** <https://gitlab.com/shackra/goimapnotify>
- **上游文档:** <https://gitlab.com/shackra/goimapnotify#readme>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://gitlab.com/shackra/goimapnotify/-/archive/2.5.6/goimapnotify-2.5.6.tar.bz2>
- **最后更新:** 2026-07-11T18:00:29Z
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- goimapnotify (cli)
- goimapnotify (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 2.5.6
- 管理器更新时间: 2026-07-11
- 本地数据: OK
- 上游仓库: https://gitlab.com/shackra/goimapnotify
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

goimapnotify is a Go command-line utility that watches IMAP mailboxes with IDLE and runs user-configured commands when messages are added, deleted, or changed.

### 项目历史

The project was created on GitLab in August 2017 and describes itself as a Golang version of an IMAP notification tool for executing scripts on mailbox changes. Its first visible Git tags, 1.0 and 1.0.1, appeared in August 2017.

The README documents compatibility with the Python imapnotify configuration style while using Go-specific option names such as passwordCMD. Later releases added OAuth2 support, STARTTLS-related fixes, YAML configuration, monitoring all mailboxes, IMAP ID support, and event handling for changed or deleted mail.

### 采用历史

The package is distributed in multiple Unix package ecosystems, including Homebrew, Arch Linux, MacPorts, Alpine, and Nix according to the supplied package-manager metadata. Arch Linux and MacPorts both publish package pages that point back to the GitLab upstream and describe the same IMAP-IDLE script-triggering purpose.

### 使用方式

Users install the goimapnotify CLI and provide a JSON, YAML, YML, or TOML configuration file. The documented default config path is $XDG_CONFIG_HOME/goimapnotify/goimapnotify.yaml, and the -conf flag can override it.

A configuration defines one or more IMAP accounts, watched mailboxes, authentication values or commands that produce them, TLS behavior, and shell commands to run for events such as new, changed, or deleted messages. The -list mode helps users inspect mailbox hierarchy before choosing mailbox names.

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

goimapnotify is a small Unix-style automation utility: it bridges remote IMAP IDLE events to local commands such as mail sync scripts. That makes it useful in terminal mail setups where package-manager availability and predictable config-file behavior matter more than a graphical mail client.

For package maintainers, it is a compact Go network daemon/CLI with a stable upstream, tagged releases, and cross-distribution packaging, but it also carries typical mail-tool concerns around TLS defaults, OAuth2 token handling, and redaction of credentials in logs.

### 时间线

- 2017-08-23: GitLab project created.
- 2017-08-25: Tag 1.0 published.
- 2019-04-26: Tag 2.0 published.
- 2021-04-19: Tag 2.2 published with OAuth2-related development in the tag history.
- 2024-09-30: Version 2.4 changelog records YAML support, monitoring all mailboxes, IMAP ID support, and credential-redaction work.
- 2026-02-14: Version 2.5.5 released.

### Related projects

- python-imapnotify is listed by the goimapnotify README as the older Python implementation whose configuration style goimapnotify mostly follows.

### 来源

- <https://archlinux.org/packages/extra/x86_64/goimapnotify/>
- <https://gitlab.com/shackra/goimapnotify>
- <https://gitlab.com/shackra/goimapnotify/-/raw/master/CHANGELOG.md>
- <https://gitlab.com/shackra/goimapnotify/-/raw/master/README.md>
- <https://gitlab.com/shackra/goimapnotify/-/tags>
- <https://gitlab.com/shackra/goimapnotify/-/tags?page=2>
- <https://ports.macports.org/port/goimapnotify/>


## 安全说明

没有找到 goimapnotify 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: $XDG_CONFIG_HOME/goimapnotify/goimapnotify.yaml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** goimapnotify
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - goimapnotify: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/goimapnotify/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - goimapnotify - 2.5.4-r3: normalized package name match | Alpine Linux edge package indexes: goimapnotify from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | execute scripts on IMAP mailbox changes using IDLE, golang version | https://gitlab.com/shackra/goimapnotify
- apk - goimapnotify-systemd - 2.5.4-r3: normalized package name match | Alpine Linux edge package indexes: goimapnotify-systemd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | execute scripts on IMAP mailbox changes using IDLE, golang version (systemd files) | https://gitlab.com/shackra/goimapnotify
- pacman - goimapnotify - 2.5.5-1: normalized package name match | Arch Linux sync databases: goimapnotify from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Execute scripts on IMAP mailbox changes (new/deleted/updated messages) using IDLE, golang version. | https://gitlab.com/shackra/goimapnotify
- MacPorts - goimapnotify: normalized package name match | MacPorts ports tree: mail/goimapnotify/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://www.automicvault.com/zh-hans/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [fetchmail](https://www.automicvault.com/zh-hans/pkg/brew/fetchmail/) - Shares av.db curated category or tags: cli, email, imap, networking.
- [mailutils](https://www.automicvault.com/zh-hans/pkg/brew/mailutils/) - Shares av.db curated category or tags: cli, email, imap, networking.
- [mpop](https://www.automicvault.com/zh-hans/pkg/brew/mpop/) - Shares av.db curated category or tags: cli, email, networking.
- [msmtp](https://www.automicvault.com/zh-hans/pkg/brew/msmtp/) - Shares av.db curated category or tags: cli, email, networking.
- [sendemail](https://www.automicvault.com/zh-hans/pkg/brew/sendemail/) - Shares av.db curated category or tags: cli, email, networking.
- [dovecot](https://www.automicvault.com/zh-hans/pkg/brew/dovecot/) - Shares av.db curated category or tags: cli, email, imap, networking.
- [getmail6](https://www.automicvault.com/zh-hans/pkg/brew/getmail6/) - Shares av.db curated category or tags: cli, email, imap, networking.
- [isync](https://www.automicvault.com/zh-hans/pkg/brew/isync/) - Shares av.db curated category or tags: cli, email, imap, networking.
- [obfs4proxy](https://www.automicvault.com/zh-hans/pkg/brew/obfs4proxy/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, go, networking.
- [amtterm](https://www.automicvault.com/zh-hans/pkg/brew/amtterm/) - Local package facts share a topical domain. Shared terms: cli, networking.

## Combined YAML source

View the package source record on GitHub. [combined/goimapnotify.yml](https://github.com/automic-vault/db/blob/main/combined/goimapnotify.yml)


## 来源

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