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

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

## 安装

```sh
sudo av install brew:offlineimap
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install offlineimap
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install offlineimap
```

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

### Linux

- apk (92%):

```sh
sudo apk add offlineimap
```

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

- Debian apt (92%):

```sh
sudo apt install offlineimap
```

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

- dnf (92%):

```sh
sudo dnf install offlineimap
```

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

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

- pacman (92%):

```sh
sudo pacman -S offlineimap
```

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

## 软件包事实

- **软件包键:** brew:offlineimap
- **软件包管理器:** Homebrew
- **版本:** 8.0.3
- **来源摘要:** Synchronizes emails between two repositories
- **主页:** <https://github.com/OfflineIMAP/offlineimap3>
- **仓库:** <https://github.com/OfflineIMAP/offlineimap3>
- **最后更新:** 2026-07-11T09:50:47+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- offlineimap (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

OfflineIMAP is a long-running Python tool for synchronizing IMAP mailboxes into local Maildir trees. Its durable niche is disconnected mail: users can read, search, back up, and process mail with local Unix mail tools while OfflineIMAP handles bidirectional IMAP synchronization.

### 项目历史

The project predates its GitHub era; the OfflineIMAP website describes '13 years of history' for the community site, and the legacy GitHub repository was created on 2012-07-23. The mainline project reached v7.3.4 on 2021-08-03, where its changelog said the Python 2 line would receive minor bug fixes only and directed users to the Python 3 fork.

The Homebrew formula points at OfflineIMAP/offlineimap3, whose GitHub repository was created on 2020-09-02. The offlineimap3 README describes it as the Python 3 codebase based on the Python 2 OfflineIMAP project, retaining the same user-facing documentation and configuration model while the source was updated.

### 采用历史

OfflineIMAP became part of the classic console-mail stack around Maildir, Mutt, and Notmuch. The legacy repository topics include mutt, notmuch, offline, synchronize, IMAP, and Maildir, which matches how the tool is used in local-first mail workflows rather than as a standalone mail client.

Package-manager coverage is broad for a niche mail synchronizer: the input record lists packages in Homebrew, Debian, Ubuntu, Fedora/dnf, Arch/pacman, Nix, MacPorts, and Alpine. Homebrew Formulae reported version 8.0.3 and 1,359 installs in its 365-day analytics window when fetched on 2026-07-01.

### 使用方式

Operators configure accounts and repositories in ~/.offlineimaprc or the XDG config path, then run the offlineimap command to synchronize remote IMAP folders with local Maildir directories. The official website frames the core use case as reading mail offline without requiring the mail user agent to support disconnected IMAP operations.

Package nerds tend to care about OfflineIMAP because it sits at the junction of old-school Unix mail storage, IMAP quirks, SSL and proxy support, and Python packaging migration. The Python 2 to Python 3 split is visible in package metadata, upstream repositories, and downstream formula maintenance.

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

OfflineIMAP is a good example of a small CLI that remains relevant because it preserves a file-format contract, Maildir, rather than owning the full application experience. Its packaging history shows how downstreams track a legacy project while redirecting users to a maintained language-runtime fork.

### 时间线

- 2012-07-23: the legacy OfflineIMAP/offlineimap GitHub repository was created.
- 2015-03 and 2015-04: the v6.5.7 release candidates moved documentation to the website, added proxy support, added systemd integration files, and updated imaplib2 for work toward Python 3.
- 2020-09-02: the OfflineIMAP/offlineimap3 repository was created for the Python 3 line.
- 2021-08-03: v7.3.4 of the legacy line was described as likely the last minor release, with users directed to offlineimap3.

### Related projects

- OfflineIMAP is commonly paired with Maildir-aware or local-indexing tools such as Mutt and Notmuch. Within its own project family, offlineimap3 is the Python 3 successor to the Python 2 offlineimap repository.

### 来源

- <https://api.github.com/repos/OfflineIMAP/offlineimap>
- <https://api.github.com/repos/OfflineIMAP/offlineimap3>
- <https://formulae.brew.sh/api/formula/offlineimap.json>
- <https://formulae.brew.sh/formula/offlineimap>
- <https://github.com/OfflineIMAP/offlineimap>
- <https://github.com/OfflineIMAP/offlineimap3>
- <https://raw.githubusercontent.com/OfflineIMAP/offlineimap/master/Changelog.md>
- <https://www.offlineimap.org/>
- <https://www.offlineimap.org/documentation.html>


## 安全说明

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## 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: ~/.offlineimaprc, $XDG_CONFIG_HOME/offlineimap/config

## Credential files

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

- Debian apt - offlineimap - 7.3.3+dfsg1-1+0.0~git20240826.db34745+dfsg-2: normalized package name match | Debian stable package indexes: offlineimap from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional package | https://github.com/OfflineIMAP/offlineimap3
- Nix - offlineimap: normalized package name match | nixpkgs package indexes: pkgs/by-name/of/offlineimap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - offlineimap - 7.3.3+dfsg1-1+0.0~git20231218.d29a4dc+dfsg-3ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: offlineimap from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | transitional package | https://github.com/OfflineIMAP/offlineimap3
- apk - offlineimap - 8.0.0-r4: normalized package name match | Alpine Linux edge package indexes: offlineimap from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Read/sync your IMAP mailboxes | https://github.com/OfflineIMAP/offlineimap3
- apk - offlineimap-pyc - 8.0.0-r4: normalized package name match | Alpine Linux edge package indexes: offlineimap-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for offlineimap | https://github.com/OfflineIMAP/offlineimap3
- dnf - offlineimap - 8.0.2-3.fc45: normalized package name match | Fedora Rawhide package metadata: offlineimap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Powerful IMAP/Maildir synchronization and reader support | https://www.offlineimap.org/
- pacman - offlineimap - 8.0.3-1: normalized package name match | Arch Linux sync databases: offlineimap from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Synchronizes emails between two repositories | http://offlineimap.org/
- MacPorts - offlineimap: normalized package name match | MacPorts ports tree: mail/offlineimap/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/offlineimap.yml](https://github.com/mxcl/pkgdb/blob/main/combined/offlineimap.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
