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

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

## 安装

```sh
sudo av install brew:imapsync
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install imapsync
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install imapsync
```

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

### Linux

- apk (92%):

```sh
sudo apk add imapsync
```

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

- dnf (92%):

```sh
sudo dnf install imapsync
```

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

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

- pacman (92%):

```sh
sudo pacman -S imapsync
```

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

## 软件包事实

- **软件包键:** brew:imapsync
- **软件包管理器:** Homebrew
- **版本:** 2.314
- **来源摘要:** Migrate or backup IMAP mail accounts
- **主页:** <https://imapsync.lamiral.info/>
- **仓库:** <https://github.com/imapsync/imapsync>
- **最后更新:** 2026-06-22T14:03:46-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- imapsync (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

imapsync is a Perl command-line tool for one-way IMAP account migration and backup. It is one of the practical workhorse packages administrators reach for when mailboxes need to move between providers without duplicating messages or losing folder structure and flags.

### 项目历史

Gilles Lamiral's README gives an unusually clear origin story: he initially wrote imapsync in July 2001 for BaSystemes, which needed to install a new IMAP server without losing large old mailboxes reachable over an unreliable low-bandwidth ISDN link.

The same history section says imapsync began as a patch to copy_folder.pl from the Mail-IMAPClient Perl module examples. Its design was explicitly made with rsync in mind: reruns should avoid wasting bandwidth and avoid creating duplicates.

The ChangeLog is an RCS-style log with more than one thousand revisions. It documents a tool that evolved through provider-specific behavior, Gmail and Yahoo options, OAuth support, web/CGI use, Docker behavior, logging, folder mapping, and a large unit-test corpus.

### 采用历史

imapsync moved from a bespoke migration script into a long-running public tool with a distinctive funding model. The README says it is free, open, and public under the NOLIMIT Public License, while the author sells builds and support as a way to maintain the tool over decades.

The installation docs cover Unix, Windows, macOS, Docker, Debian, FreeBSD, Arch Linux, CPanel, AWS EC2, and an online UI. That breadth reflects adoption by individual users, hosting providers, consultants, and administrators doing bulk migrations rather than only local backups.

Homebrew formula metadata lists imapsync as a bottled package for macOS and Linux. That packaging matters because imapsync has a deep Perl dependency surface; package managers turn it from a migration project into a single installable command.

### 使用方式

The core invocation names a source host, user, and password plus a destination host, user, and password. imapsync then recursively transfers folders and messages, preserves flags, and skips messages it has already identified on the destination.

The README is careful about operational limits: imapsync is for migration and backup, not active two-way synchronization. It points users who need two-way sync toward offlineimap or mbsync, and it documents strict destination cleanup with options such as --delete2.

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

For package nerds, imapsync is significant because it packages a messy real-world protocol job into a repeatable CLI. IMAP servers disagree, provider policies change, Gmail labels behave unlike folders, and credentials migrate from passwords to OAuth; imapsync's long option list is a fossil record of those edge cases.

It is also a useful example of an open tool that is commercially sustained without disappearing from package managers. The package remains scriptable and inspectable while the author sells convenience builds, support, and an online migration surface.

### 时间线

- 2001: Gilles Lamiral writes imapsync for a BaSystemes IMAP server migration over a fragile ISDN link.
- 2007: imapsync.spec work appears in project FAQ history, showing packaging interest around Linux distributions.
- 2011: The GitHub repository is created.
- 2024: The ChangeLog reaches the 2.300 series with refactoring, CGI, Gmail, and logging changes.
- 2025: Release 2.314 is documented in the README and VERSION file.
- 2026: The ChangeLog records 2.32x revisions, including refactoring and option changes.

### Related projects

- Mail-IMAPClient is the Perl module lineage named by imapsync's history section.
- rsync is the design inspiration named by the author for avoiding duplicate transfer work.
- offlineimap and mbsync are related IMAP synchronization tools that the README names for two-way synchronization use cases.

### 来源

- <https://api.github.com/repos/imapsync/imapsync>
- <https://formulae.brew.sh/api/formula/imapsync.json>
- <https://github.com/imapsync/imapsync>
- <https://imapsync.lamiral.info/>
- <https://imapsync.lamiral.info/ChangeLog>
- <https://imapsync.lamiral.info/INSTALL.d/INSTALL.ANY.txt>
- <https://imapsync.lamiral.info/README>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Nix - imapsync: normalized package name match | nixpkgs package indexes: pkgs/by-name/im/imapsync/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - imapsync - 2.314-r1: normalized package name match | Alpine Linux edge package indexes: imapsync from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | IMAP synchronisation, sync, copy or migration tool | https://imapsync.lamiral.info/
- apk - imapsync-doc - 2.314-r1: normalized package name match | Alpine Linux edge package indexes: imapsync-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | IMAP synchronisation, sync, copy or migration tool (documentation) | https://imapsync.lamiral.info/
- dnf - imapsync - 2.229-11.fc45: normalized package name match | Fedora Rawhide package metadata: imapsync from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Tool to migrate email between IMAP servers | http://github.com/imapsync/imapsync
- pacman - imapsync - 2.314-1: normalized package name match | Arch Linux sync databases: imapsync from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | IMAP synchronisation, sync, copy or migration tool | https://imapsync.lamiral.info/
- MacPorts - imapsync: normalized package name match | MacPorts ports tree: mail/imapsync/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/imapsync.yml](https://github.com/mxcl/pkgdb/blob/main/combined/imapsync.yml)


## 来源

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