AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[mutt](ubuntu)

Martin Hope
Erwann
Asked: 2021-04-11 19:19:21 +0800 CST

找不到 [mutt] 的 `muttrc`

  • 1

mutt,的配置文件muttrc不是mutt -h它应该在的地方。有人可以帮忙吗?

~ $ mutt -v
Mutt 1.9.4 (2018-02-28)
Copyright (C) 1996-2016 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 4.15.0-20-generic (x86_64)
ncurses: ncurses 6.1.20180127 (compiled with 6.1)
libidn: 1.33 (compiled with 1.33)
hcache backend: tokyocabinet 1.4.48

Compiler:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) 

Configure options: '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=\${prefix}/include' '--mandir=\${prefix}/share/man' '--infodir=\${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=\${prefix}/lib/x86_64-linux-gnu' '--libexecdir=\${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-mailpath=/var/mail' '--enable-compressed' '--enable-debug' '--enable-fcntl' '--enable-hcache' '--enable-gpgme' '--enable-lua' '--enable-imap' '--enable-smtp' '--enable-pop' '--enable-sidebar' '--enable-nntp' '--enable-dotlock' '--disable-fmemopen' '--with-curses' '--with-gnutls' '--with-gss' '--with-idn' '--with-mixmaster' '--with-sasl' '--without-gdbm' '--without-bdb' '--without-qdbm' '--with-tokyocabinet' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/mutt-woklFX/mutt-1.9.4=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'

Compilation CFLAGS: -Wall -pedantic -Wno-long-long -g -O2 -fdebug-prefix-map=/build/mutt-woklFX/mutt-1.9.4=. -fstack-protector-strong -Wformat -Werror=format-security

Compile options:
-DOMAIN
+DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  +USE_FCNTL  -USE_FLOCK   
+USE_POP  +USE_IMAP  +USE_SMTP  
-USE_SSL_OPENSSL  +USE_SSL_GNUTLS  +USE_SASL  +USE_GSS  +HAVE_GETADDRINFO  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  +CRYPT_BACKEND_GPGME  
-EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE  +USE_SIDEBAR  +USE_COMPRESSED  
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc"
EXECSHELL="/bin/sh"
MIXMASTER="mixmaster"
To contact the developers, please mail to <[email protected]>.
To report a bug, please visit <https://gitlab.com/muttmua/mutt/issues>.

~ $ man mutt | grep 'muttrc' 
-F muttrc Specify an initialization file to read instead of ~/.muttrc ~/.muttrc or ~/.mutt/muttrc curses(3), mailcap(5), maildir(5), mbox(5), mutt_dotlock(1), muttrc(5), ncurses(3), sendmail(1),
~ $ [ -d .mutt ] && echo "found" || echo "missing"
missing
~ $ [ -f .muttrc ] && echo "found" || echo "missing"
missing
mutt
  • 1 个回答
  • 483 Views
Martin Hope
geohei
Asked: 2019-06-05 10:04:36 +0800 CST

mail 和 mutt 都不发送带有文件附件的电子邮件

  • 1

我的网络提供商最近从 Ubuntu 14.04 更改为 18.04。这破坏了我用来发送没有正文但带有附件的电子邮件的自动脚本。我缩短了下面的代码以简化。

这一直有效到现在。

mail -a file.txt -s "Test" [email protected] < /dev/null

身体(!)结果是:没有附加!

file.txt
MIME-Version: 1.0
Content-Type: text/plain; charset="ANSI_X3.4-1968"
Content-Transfer-Encoding: 8bit

文件本身没有附加!显然只发送了编码的标头。

下次尝试:

uuencode file.txt file.txt | mail -s "Test" [email protected]

这一次,body (!) 结果是:没有显示附件!

begin 644 file.txt
M0D5'24XZ5D-!3$5.1$%2#0I615)324]..C(N,`T*4%)/1$E$.BTO+V=E;VAE
M:2!S;V9T=V%R92\O3D].4T=-3"!R;W-T;VEC<R\O14X-"DU%5$A/1#I054),
...

这一次,文件显然被编码,但显示为正文,而不是附件。

我在 2 个不同的客户端和一个 webmail 界面上检查了邮箱。所有相同,从不附加。

mutt(而不是mail)也没有生成文件附件。所以我猜这个问题是系统相关的,而不是mail相关mutt的。

这里出了什么问题?

command-line mail mutt 18.04 attachment
  • 1 个回答
  • 341 Views
Martin Hope
Ingo
Asked: 2018-09-07 05:56:18 +0800 CST

升级到 18.04 后,Mutt 在 chrome 中打开 html 邮件时显示原始 html

  • 5

我使用 Mutt 阅读电子邮件,我的大部分电子邮件都以纯文本形式显示。对于少数例外情况,我习惯于按“v”,选择消息的 html 部分,然后按 Enter 以在浏览器中查看该消息。为此,我~/.mailcap在主目录中有一个文件,其中包含以下条目

text/html; google-chrome '%s'; test=test -n "$DISPLAY"; needsterminal;

我.muttrc像这样引用了文件

set mailcap_path="~/.mailcap"

自从升级到 Ubuntu 18.04 后,这不再打开新的浏览器窗口,而是显示 mutt 中的原始 html 代码。经过一番搜索,我了解到我可能必须使用“m”而不是回车键。实际上,这会在浏览器中打开文件,但不是呈现 html,而是显示消息的原始 html。

我应该提到我在使用 PDF 时遇到了类似的问题,所以我认为这与 Mutt 有关:升级后,PDF 突然显示在 acrobat 阅读器中,尽管我的 mailcap 配置为使用 zathura。在我的 muttrc 中的 mailcap 文件周围添加引号后,当我按 Enter 键时,mutt 显示原始 PDF 代码,并在我按“m”时在 zathura 中打开 PDF。然而,PDF 会被渲染,而 HTML 不会。

编辑我注意到手动保存消息message.html允许我打开消息并呈现它,但将其保存为message使 chrome 显示源代码。所以下面的 mailcap 条目完成了这项工作(如果我点击 'm'):

text/html; mv '%s' '%s'.html && /usr/bin/sensible-browser '%s'.html && sleep 2 && rm -f '%s'.html; test=test -n "$DISPLAY"; needsterminal;

但这显然不是它应该的样子。

google-chrome mutt
  • 2 个回答
  • 794 Views
Martin Hope
Teekin
Asked: 2018-04-29 10:26:52 +0800 CST

Bionic Beaver 中缺少 Mutt 补丁包?

  • 4

我需要一个mutt名为“sidebar”的补丁,它是mutt-patchedUbuntu 16.04 中软件包的一部分。现在我已经切换到 Ubuntu 18.04 并且它似乎不存在于 Ubuntu 18.04 的存储库中。

我可以在网上找到关于如何安装“侧边栏”补丁的唯一说明是应用补丁并自己编译包。我有技术知识来做到这一点,但我不喜欢使用手工编译的软件,因为那样我将不得不手动检查更新而不是使用 apt 系统。

apt告诉我包已经被包替换了mutt:

[root@bonkwinkler ~]# apt-get install mutt-patched
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package mutt-patched is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  mutt:i386 mutt

E: Package 'mutt-patched' has no installation candidate
[root@bonkwinkler ~]# 

但是,在运行时mutt,我会看到一个配置错误。

[helgihg@bonkwinkler ~]$ mutt
Error in /home/helgihg/.mutt/muttrc, line 47: sidebar_sort: unknown variable
Error in /home/helgihg/.mutt/muttrc, line 64: sidebar-scroll-up: no such function in map
Error in /home/helgihg/.mutt/muttrc, line 65: sidebar-scroll-down: no such function in map
Error in /home/helgihg/.mutt/muttrc, line 66: sidebar-scroll-up: no such function in map
Error in /home/helgihg/.mutt/muttrc, line 67: sidebar-scroll-down: no such function in map

所以旧mutt-patched包中的补丁似乎没有包含在常规mutt包中。

有没有人有这方面的信息,可能会阐明这个问题?

software-installation package-management mutt 18.04
  • 1 个回答
  • 743 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve