更新
这个答案已经有点过时了,幸运的是,有些人已经创建了一些自制补丁来解决这个问题,使得它变得更加简单。现在你只需要按照以下步骤操作:
brew uninstall mutt
brew tap sgeb/mutt
brew install sgeb/mutt/mutt --with-sidebar-patch
如果你想安装带有其他补丁的Mutt,请看看你可以通过输入以下命令安装的选项:
brew options sgeb/mutt/mutt
我的输出结果是:
--with-confirm-attachment-patch
Apply confirm attachment patch
--with-debug
Build with debug option enabled
--with-forwref-patch
Apply forward_references patch
--with-gettext
Build with gettext support
--with-gmail-labels-patch
Apply gmail labels patch
--with-gmail-server-search-patch
Apply gmail server search patch
--with-gpgme
Build with gpgme support
--with-ignore-thread-patch
Apply ignore-thread patch
--with-libidn
Build with libidn support
--with-pgp-verbose-mime-patch
Apply PGP verbose mime patch
--with-s-lang
Build against slang instead of ncurses
--with-sidebar-patch
Apply sidebar patch
--with-trash-patch
Apply trash folder patch
--HEAD
Install HEAD version
我在阅读以上所有答案时遇到了问题,但最终我成功地解决了。我的做法如下:
brew edit mutt
然后我滚动到一部分命令,所有这些命令都以“option”开头,有点像:
option "with-debug", "Build with debug option enabled"
option "with-trash-patch", "Apply trash folder patch"
option "with-s-lang", "Build against slang instead of ncurses"
option "with-ignore-thread-patch", "Apply ignore-thread patch"
option "with-pgp-verbose-mime-patch", "Apply PGP verbose mime patch"
option "with-confirm-attachment-patch", "Apply confirm attachment patch"
我随后在此块的底部添加了一行。
option "with-sidebar-patch", "Apply sidebar patch"
接着我向下滚动,来到了所有补丁的部分,例如:
patch do
url "http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-6.2+deb7u1/features/trash-folder"
sha1 "6c8ce66021d89a063e67975a3730215c20cf2859"
end if build.with? "trash-patch"
我添加了侧边栏的补丁(在这里发现:https://github.com/kevwil/homebrew-patches/blob/master/mutt.rb)
patch do
url "https://raw.github.com/nedos/mutt-sidebar-patch/7ba0d8db829fe54c4940a7471ac2ebc2283ecb15/mutt-sidebar.patch"
sha1 "1e151d4ff3ce83d635cf794acf0c781e1b748ff1"
end if build.with? "sidebar-patch"
最后,请退出编辑 Homebrew 文件,并在命令行中输入以下命令:
brew install mutt --with-sidebar-patch
祝你好运!
p.s. 如果出现类似 aclocal
的错误,则需要安装automake,brew install automake
brew install mutt --with-sidebar-patch
命令时,它会提示警告: mutt-1.5.23_2 已经安装
。 - Hebbianbrew remove mutt
。 - Fredrik Wallgrenurl "http://lunar-linux.org/~tchan/mutt/patch-1.5.23.sidebar.20140412.txt" sha256 "5f473e201519d95b8c2319f286221213386de2d7c27629c70733b40b643b59c4"
- mirth23brew reinstall mutt
,而不是install
。 - thorr18