# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix 安装 getmail6

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

## 安装

```sh
sudo av install brew:getmail6
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install getmail6
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install getmail6
```

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

### Linux

- apk (92%):

```sh
sudo apk add getmail6
```

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

- Debian apt (92%):

```sh
sudo apt install getmail6
```

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

- dnf (92%):

```sh
sudo dnf install getmail6
```

  证据: Fedora Rawhide package metadata: getmail6 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#getmail6
```

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

## 软件包事实

- **软件包键:** brew:getmail6
- **软件包管理器:** Homebrew
- **版本:** 6.20.00
- **来源摘要:** Extensible mail retrieval system with POP3, IMAP4, SSL support
- **主页:** <https://getmail6.org/>
- **仓库:** <https://github.com/getmail6/getmail6>
- **最后更新:** 2026-06-15T21:15:00Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- getmail (别名)
- getmail_fetch (别名)
- getmail_maildir (别名)
- getmail_mbox (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

getmail6 is the Python 3 continuation of getmail, an extensible mail retrieval system for POP3, IMAP4, SSL-protected mailboxes, filtering, and delivery to local mail stores or external delivery agents.

### 项目历史

The official documentation describes getmail version 6 as a port of getmail version 5 to Python 3 without adding features. The project preserves Charles Cazabon's getmail design while carrying the code through Python 3 compatibility, XDG configuration behavior, OAuth-related fixes, and mail-server compatibility changes.

### 采用历史

getmail6 took over an established role from getmail after Python 2 era packaging became harder to sustain. Its appearance in Homebrew, Alpine, Debian, Fedora, MacPorts, Nix, and Ubuntu package sets reflects the need for a maintained fetchmail alternative in Unix-like mail setups.

### 使用方式

Practitioners configure one or more retrievers and destinations in `getmailrc`, then run `getmail` manually, from cron, or as part of a local mail workflow. Common uses include pulling mail from POP3 or IMAP accounts, writing Maildir or mboxrd files, invoking an MDA, filtering messages, and using helper commands such as `getmail_fetch`, `getmail_maildir`, and `getmail_mbox`.

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

For package users, getmail6 matters because it keeps the conservative getmail workflow available on Python 3 systems. The project is intentionally evolutionary: compatibility fixes, configuration-path behavior, and mail-provider authentication changes carry more weight than new feature breadth.

### 时间线

- 1998: The getmail copyright history begins.
- 2019: getmail 5.14 was released by the original line.
- 2020: getmail6 version 6.00 made the code compatible with Python 3.
- 2020: Version 6.7 added XDG configuration-directory behavior.
- 2025: Version 6.19.08 removed Python 2 support code.

### Related projects

- getmail6 is related to the original getmail project and to fetchmail as the older mail retriever it was designed to replace.

### 来源

- <https://api.github.com/repos/getmail6/getmail6>
- <https://getmail6.org/configuration.html>
- <https://getmail6.org/documentation.html>
- <https://github.com/getmail6/getmail6>
- <https://raw.githubusercontent.com/getmail6/getmail6/master/docs/CHANGELOG>
- <https://raw.githubusercontent.com/getmail6/getmail6/master/docs/configuration.txt>
- <https://raw.githubusercontent.com/getmail6/getmail6/master/docs/documentation.txt>


## 安全说明

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: $XDG_CONFIG_HOME/getmail/getmailrc, ~/.config/getmail/getmailrc, ~/.getmail/getmailrc

## Credential files

- Unix: $XDG_CONFIG_HOME/getmail/getmailrc, ~/.config/getmail/getmailrc, ~/.getmail/getmailrc
## 其他软件包管理器记录

- Debian apt - getmail6 - 6.19.07-1: normalized package name match | Debian stable package indexes: getmail6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | mail retriever with support for POP3, IMAP4 and SDPS | https://getmail6.org/
- Nix - getmail6: normalized package name match | nixpkgs package indexes: pkgs/by-name/ge/getmail6/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - getmail6 - 6.18.13-1: normalized package name match | Ubuntu 24.04 LTS package indexes: getmail6 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | mail retriever with support for POP3, IMAP4 and SDPS | https://getmail6.org/
- apk - getmail6 - 6.19.12-r0: normalized package name match | Alpine Linux edge package indexes: getmail6 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | mail retriever with support for POP3, IMAP4 and SDPS | https://getmail6.org/
- apk - getmail6-doc - 6.19.12-r0: normalized package name match | Alpine Linux edge package indexes: getmail6-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | mail retriever with support for POP3, IMAP4 and SDPS (documentation) | https://getmail6.org/
- apk - getmail6-pyc - 6.19.12-r0: normalized package name match | Alpine Linux edge package indexes: getmail6-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for getmail6 | https://getmail6.org/
- dnf - getmail6 - 6.20.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: getmail6 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A mail retrieval, sorting, and delivering system | https://www.getmail6.org/
- MacPorts - getmail6: normalized package name match | MacPorts ports tree: mail/getmail6/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- MacPorts - getmail: installed executable or alias match | MacPorts ports tree: mail/getmail/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/getmail6.yml](https://github.com/mxcl/pkgdb/blob/main/combined/getmail6.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
