在linux上调用mutt-1.5.24。
在linux上使用mutt将html文件从linux发送到windows/outlook时,我看到了一些非常奇怪的行为。狗叫声的例子。。。
mutt -e 'set content_type=text/html' -s 'yuk, yuk, yuk' 'moe.howard@stooge.com' < a.html
该电子邮件不会显示在windows端。mutt没有在linux端返回任何错误或警告。现在,奇怪的是。。。如果我将html正文中的字符串“pcie”替换为“pcix”,则电子邮件会在windows/outlook端正常显示。或如果我将“ity”替换为“…”它也可以正常工作(即使我不使用“pcie”)。但将“城市”改为“xxx”是失败的。像这样非常奇怪的性格敏感行为。
在linux端的my home目录中,我看到一个文件~/sent正在创建中。标题(无论电子邮件是否发送到windows/outlook端)看起来像。。。
From m.howard@theserver.stooge.com Thu Jan 28 18:49:29 2021
Date: Thu, 28 Jan 2021 18:49:29 -0500
From: Moe Howard <mhoward@theserver.stooge.com>
To: moe.howard@stooge.com
Subject: yuk, yuk, yuk
Message-ID: <20210128234929.GA48266@atletx7-reg062.amd.com>
MIME-Version: 1.0
Content-Type: text/html; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.24 (2015-08-30)
Status: RO
Content-Length: 20537
Lines: 122
<html>
....etc... the rest of the html which firefox reads just fine if I get rid of the header above
抓救命稻草。查看“sent”文件中的“charset=us ascii”,是否认为它应该是其他内容?因此,我尝试提供其他选项,在命令中添加“-e”set_charset=utf-8:us ascii”。不走运。
你知道可能会发生什么,解决方案是什么吗?