惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
博客园 - 司徒正美
V
Visual Studio Blog
博客园 - 【当耐特】
T
Tailwind CSS Blog
美团技术团队
博客园 - 叶小钗
Jina AI
Jina AI
宝玉的分享
宝玉的分享
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
Stack Overflow Blog
Stack Overflow Blog
博客园_首页
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
Martin Fowler
Martin Fowler
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC

Arch Linux Forums

Avidemux crashes without strace / Applications & Desktop Environments how to apply patches with non-linux linends / Newbie Corner Replicating CachyOS on vanilla Arch (or at least getting close) / Arch Discussion What's arch linux GUI package manager ? / Newbie Corner Hibernation failing due to insufficient memory / System Administration profiledef.sh editting question / Installation trying to script kde plasma wallpaper settings / Programming & Scripting Looking for new Audacious package maintainer / Creating & Modifying Packages issues installing arch with LUKS2 encryption / Newbie Corner QEMU PXE booting does not work with OVMF.4m.fd / Applications & Desktop Environments Wired lan regular disconnect / Newbie Corner Need Help setting up ARCH in my G16 G634JZR iwlwifi started failing consistently, trying to determine root cause Windows randomly jumping between monitors after GNOME 50 update No display via DP or HDMI after boot. / Kernel & Hardware how to change acpi platform_profile? / Newbie Corner Linux denied all kernel modules which not loaded right now Use iPhone as Webcam for Arch Linux Video Output Failure on nvidia-580xx-dkms on TTY --> Desktop switch (Page 2) / Kernel & Hardware I was going to rant ..WINE32 Sabotage compliments of Arvind Krishna / Arch Discussion [SOLVED] LUKS drive auto unlocked by TPM when expected not to / Networking, Server, and Protection Hibernate/suspend from X = dark panel; from TTY = works (ASUS G14, hyb (Page 2) / Laptop Issues Headphone jack noise/buzz / Newbie Corner segmentation fault in cc1plus when building CLK / AUR Issues, Discussion & PKGBUILD Requests Console alternative to meld / GNU/Linux Discussion Problem with paru git clone / Newbie Corner XKB questions / Applications & Desktop Environments gnome-keyring-daemon is not working correctly / Applications & Desktop Environments [SOLVED] Steam opens and immediately closes constantly / Newbie Corner Firefox rounded edges on Sway / Applications & Desktop Environments
[REQUEST] offlineimap3 / AUR Issues, Discussion & PKGBUIL...
ozzloy · 2026-06-26 · via Arch Linux Forums

#1 2020-12-02 13:58:59

sharethewisdom
Member
Registered: 2014-09-22
Posts: 61

[REQUEST] offlineimap3

Work has been proceeding on the python3 version of offlineimap. Recently an experimental Debian package was created.

Could this be made available in [community-testing]? Or shall I create an offlineimap3-git aur package as well as one for a python3 version of python-imaplib2?

pkgname=offlineimap3-git
_pkgname=offlineimap3
pkgver=r2689.74744ce
pkgrel=1
pkgdesc="A powerful IMAP/Maildir synchronization tool (python3 version)"
url="http://offlineimap.org/"
arch=('any')
license=('GPL')
depends=('python' 'python-imaplib') #todo: python3 version of python-imaplib2
makedepends=('git' 'asciidoc')
conflicts=('offlineimap')
provides=('offlineimap')
source=("git+git://github.com/OfflineIMAP/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir"/"$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir"/"$_pkgname"
  python setup.py build

  cd "$srcdir"/"$_pkgname"/docs
  make man
}

package() {
  cd "$srcdir"/"$_pkgname"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build

  install -D -m644 docs/offlineimap.1 ${pkgdir}/usr/share/man/man1/offlineimap.1
  install -D -m644 docs/offlineimapui.7 "${pkgdir}"/usr/share/man/man7/offlineimapui.7
  install -D -m644 offlineimap.conf ${pkgdir}/usr/share/offlineimap/offlineimap.conf
  install -D -m644 offlineimap.conf.minimal ${pkgdir}/usr/share/offlineimap/offlineimap.conf.minimal

#systemd files
  install -Dm644 contrib/systemd/$_pkgname.service "${pkgdir}"/usr/lib/systemd/user/$_pkgname.service
  install -Dm644 contrib/systemd/$_pkgname-oneshot.service "${pkgdir}"/usr/lib/systemd/user/$_pkgname.service
  install -Dm644 contrib/systemd/$_pkgname-oneshot.timer "${pkgdir}"/usr/lib/systemd/user/_$pkgname.timer
  install -Dm644 contrib/systemd/$_pkgname-oneshot@.service "${pkgdir}"/usr/lib/systemd/user/$_pkgname.service
  install -Dm644 contrib/systemd/$_pkgname@.service "${pkgdir}"/usr/lib/systemd/user/$_pkgname@.service
  install -Dm644 contrib/systemd/$_pkgname-oneshot@.timer "${pkgdir}"/usr/lib/systemd/user/$_pkgname@.timer
}

# vim:set ts=2 sw=2 et:

I haven't used or tested this PKGBUILD. I remember reading about a replacement for offlineimap. What's the best choice for users who want to get rid of python2 packages but still use offlineimap? I expected to find a discussion on the forums about it, but alas.

#2 2020-12-02 14:11:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,471
Website

Re: [REQUEST] offlineimap3

sharethewisdom wrote:

I remember reading about a replacement for offlineimap. What's the best choice for users who want to get rid of python2 packages but still use offlineimap?

You may be referring to mbsync (package = isync).  I used offlineimap for a while and really liked it ... or I thought I did before I switched to mbsync which is really leaps and bounds better in every way that I've experienced.  It acheives the same goals, but the configuration is simpler, its faster, and much more stable.  And more on point for this thread, isync only depends on libsasl and zlib (no python at all).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

#3 Today 00:19:08

ozzloy
Member
Registered: 2026-06-22
Posts: 4

Re: [REQUEST] offlineimap3

for future reference for anyone who reaches this thread, there is now an offlineimap3-git AUR package.