修改mutt里GPG 签名公钥附件名

在mutt里配置好gpg后, 加密邮件会附带一个公钥文件, 这个文件名在Gmail里是 noname, 在QQ邮箱里是tcmime.1591.1634.2471.bin. 这些都会给人造成困惑, Thunderbird 里会把这个文件命名为 signature.asc

在archlinux 的github [1], 有一个patch为mutt添加了定义公钥文件名称和描述的功能. 于是从FedoraProject[2]下载mutt代码, 重新用rpmbuild编译rpm安装. 当然也可以使用Upstream[3]的代码, 记着configure时候打开需要的特性, 如 –enable-hcache 用于缓冲邮件头部改进加载速度.

安装完mutt, 只需要在~/.Muttrc里添加如下内容, 就可以修改公钥文件名了.

set pgp_mime_signature_filename=”signature.asc”
set pgp_mime_signature_description=”Digital signature”

[1] https://github.com/felix/archlinux/blob/master/mutt/pgp_verbose_mime.patch
[2] git://pkgs.fedoraproject.org/mutt.git
[3] hg clone http://hg.code.sf.net/p/mutt/code mutt-upstream

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.