emacs 下比较好的邮件方案是什么

你感觉功能是不是强大,可以满足日常大部分的需求。配置麻烦这不是问题。主要是不是很好的生产力工具。

offlineimap + mu4e蛮好用的。 Windows下的配置方法:在 Windows 上用 Emacs+offlineimap+mu4e 查收邮件

4 个赞

有直接可以下载的binary么,在Windows下编译就从来没有成功过。。

offlineimap + notmuch 挺好用的, 但是收到新邮件时, notmuch的hello界面不会自动刷新, 需要手动输入等号(=)刷新. 这一点不太好.

Notmuch 搜索还可以吧,至少对我来说是够用了。

我也试过 GNUS 作为邮件客户端,不过压根就不明白它是怎么一回事,我怀疑很多人也一样。

mu在Cygwin下可以编译通过

这个支持多个邮箱账户,自己有很多个邮箱账户

不知道offlineimap+notmuch和mutt使用有什么区别,好像一些大神也是使用终端的邮箱管理mutt,貌似很强大。

目前主流就两个:

我两个都尝试过一下之后,选择了mu长期使用,目前已经用了5年了,处理的邮件大小超过了20G。

两者本质是类似的:

  • 区别于用文件夹分类邮件的一般方式,用类似于Gmail的以搜索为主的方式来处理邮件。
  • mu/notmuch用于索引以及搜索邮件(命令行方式)
  • 包含对Emacs的扩展,用于在UI方式下处理和编写邮件。实际编写邮件的还是用的Emacs自身的message-mode

两者的差异点在于(我的简单认识):

  • notmuch更加偏向于Gmail式的用标签处理,而且标签是存在一个二进制文件中,这点是我弃用notmuch的主要原因
  • mu则仅仅是提供了搜索功能,你可以在其上用你习惯的方式,比如归类成目录,或者也用标签(存储于邮件的X-Keywords)等,这样更加灵活一点。
  • 从EmacsUI角度,mu的Emacs扩展程序mu4e的界面和使用方式更加完善。其中配备了大量扩展点,使得你很容易对其进行你想要的修改和扩展(我的扩展:https://github.com/panjie/mu4e-goodies/)。
  • mu的作者主要是一个人,但是notmuch的开发者更多一点,因此,开发活跃度也更高一点

总而言之,对于一般使用者而言,两者差异度不大,mu相对而言更容易上手和结合到自己的工作流程里去,因此推荐mu

3 个赞

这方面有没有比较好的教程?学习下,搭建下自己的邮件管理环境。

如下请参考:

  • 收邮件:isync/mbsync
    • Linux:apt直接装
    • macOS:brew直接装
    • Windows:cygwin下编译安装
  • 处理邮件:mu
    • macOS:brew
    • Linux:apt直接装,但是版本可能比较老,希望新版本的话,要自己编译安装
    • Windows:cygwin下编译安装
  • 发邮件:Emacssmtpmail,这个是Emacs发行版自带的。

我放弃 GNUS 的原因是我搞不定免密,其他的应该是正常的。

Table of Contents

配置 yahoo 邮箱,.offlineimaprc 文件按如下:

[general]
accounts = yahoo
maxsyncaccounts = 3

[Account Gmail]
localrepository = Local
remoterepository = Remote

[Repository Local]
type = Maildir
localfolders = ~/Maildir

[Repository Remote]
type = IMAP
remotehost = imap.mail.yahoo.com
remoteuser = [email protected]
remotepass = XXX
ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
maxconnections = 1
realdelete = no

但是运行 offlineimap 的时候还是出现问题如下:

OfflineIMAP 7.2.3
  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v2.57 (bundled), Python v2.7.16, OpenSSL 1.1.1b  26 Feb 2019
ERROR: The account 'yahoo' does not exist
ERROR: Exceptions occurred during the run!
ERROR: The account 'yahoo' does not exist
No accounts are defined!

大家有使用mu4e 配置雅虎邮箱的吗?

emacs 中启动 mu4e也出现一些错误: [mu4e] /home/fg/Maildir/[yahoo].Trash does not exist yet. Create now? (y or n) y error in process sentinel: mu4e~proc-sentinel: Database empty; try indexing some messages error in process sentinel: Database empty; try indexing some messages

你general里写的是yahoo, 下面写的是Gmail,当然就报错说找不到yahoo了。

[Account Gmail]

参考下我的博客吧:在 Windows 上用 Emacs+offlineimap+mu4e 查收邮件

记录了怎么在cygwin下编译mu,配置offlineimap和mu4e

启用mu4e之前,最好在命令行下mu index一把。

按照你的说明,收邮件可以,但是发送邮件提示还是有错误: Sending via mail… gnutls.el: (err=[-15] An unexpected TLS packet was received.) boot: (:priority NORMAL:%DUMBFW :hostname smtp.partner.outlook.cn :loglevel 0 :min-prime-bits 256 :trustfiles (/etc/ssl/certs/ca-certificates.crt /etc/ssl/cert.pem) :crlfiles nil :keylist nil :verify-flags nil :verify-error nil :callbacks nil) gnutls-negotiate: GnuTLS error: #, -15

发邮件,你要配置下:

  (setq send-mail-function 'smtpmail-send-it
        smtpmail-stream-type 'starttls
        smtpmail-smtp-service 587
        smtpmail-auth-credentials "~/.authinfo"))

提示错误: smtpmail-send-it: Sending failed: 450 Requested mail action not taken: mailbox unavailable