hMailServer – 带空白主体的Thunderbird消息

我刚刚安装了hMailServer和Thunderbird,并设法让他们互相交谈。

当Thunderbird从服务器获取消息(这是所有的本地运行方式),主题显示在列表中应该像它应该但身体是空白的。

点击Ctrl + U来显示源代码,显示完整的消息在那里,它只是不显示在电子邮件客户端。

在互联网上阅读了一下,我已经试过取消selectView – > Display Attachments Inline并切换View – > Message Body As – > *下的所有选项。

包括原始的消息,为了我自己的安全删除了一些部分。

Return-Path: [email protected] Received: from my-laptop ([127.0.0.1]) by localhost ; Thu, 18 Nov 2010 17:49:45 -0500 Subject: =?utf-8?Q?Forgot_your_password_on_Localhost=3f?= To: test@localhost X-PHP-Originating-Script: 0:Email.php User-Agent: CodeIgniter Date: Thu, 18 Nov 2010 17:49:45 -0500 From: "Localhost" <[email protected]> Return-Path: <[email protected]> Reply-To: "Localhost" <[email protected]> X-Sender: [email protected] X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <[email protected]> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="B_ALT_4ce5ad89986c6" This is a multi-part message in MIME format. Your email application may not support this format. --B_ALT_4ce5ad89986c6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi username, Forgot your password, huh? No big deal. To create a new password, just follow this link: http://localhost/auth/reset_password/2/3958e7dded143056d5224941f23e93eb You received this email, because it was requested by a Localhost user. This is part of the procedure to create a new password on the system. If you DID NOT request a new password then please ignore this email and your password will remain the same. Thank you, The Localhost Team --B_ALT_4ce5ad89986c6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.= w3.org/TR/html4/loose.dtd"> <html> <head><title>Create a new password on Localhost</title></head> <body> <div style=3D"max-width: 800px; margin: 0; padding: 30px 0;"> <table width=3D"80%" border=3D"0" cellpadding=3D"0" cellspacing=3D"0"> <tr> <td width=3D"5%"></td> <td align=3D"left" width=3D"95%" style=3D"font: 13px/18px Arial, Helvetica,= sans-serif;"> <h2 style=3D"font: normal 20px/23px Arial, Helvetica, sans-serif; margin: 0= ; padding: 0 0 18px; color: black;">Create a new password</h2> Forgot your password, huh? No big deal.<br /> To create a new password, just follow this link:<br /> <br /> <big style=3D"font: 16px/18px Arial, Helvetica, sans-serif;"><b><a href=3D"= http://localhost/auth/reset_password/2/3958e7dded143056d5224941f23e93eb"= style=3D"color: #3366cc;">Create a new password</a></b></big><br /> <br /> Link doesn't work? Copy the following link to your browser address bar:<br = /> <nobr><a href=3D"http://localhost/auth/reset_password/2/3958e7dded143056= d5224941f23e93eb" style=3D"color: #3366cc;">http://localhost/auth/reset_= password/2/3958e7dded143056d5224941f23e93eb</a></nobr><br /> <br /> <br /> You received this email, because it was requested by a <a href=3D"http://lo= calhost/" style=3D"color: #3366cc;">Localhost</a> user. This is a part of t= he procedure to create a new password on the system. If you DID NOT request= a new password then please ignore this email and your password will remain= the same.<br /> <br /> <br /> Thank you,<br /> The Localhost Team </td> </tr> </table> </div> </body> </html> --B_ALT_4ce5ad89986c6-- 

提前谢谢你提供给我的任何帮助。

发生这种情况是因为你缺less一个空白的crlf来将标题从正文中分离出来。 电子邮件消息格式如下:

 Header1: blah\r\n HeaderN: blah\r\n \r\n Body 

我加了\r\n为重点,但基本上,你使用空行(或本质上,双crlf)从内容分开头。 这个,你的电子邮件中的这个区域需要改变:

 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="B_ALT_4ce5ad89986c6" This is a multi-part message in MIME format. Your email application may not support this format. --B_ALT_4ce5ad89986c6 

…并介绍一个空白的crlf …

 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="B_ALT_4ce5ad89986c6" This is a multi-part message in MIME format. Your email application may not support this format. --B_ALT_4ce5ad89986c6 

希望这可以帮助!

安德鲁

我也遇到了这个问题,也尝试了以前提到的修复:

  • 取消selectView – > Display Attachments Inline
  • 切换查看 – >消息正文 – > *下的所有选项

我无法控制入站邮件的格式,所以添加\ r \ n不是一个选项。

终于奏效了:

来自: https : //support.mozilla.org/en-US/questions/1073004

  • 检查所有Thunderbid插件是最新的
  • closures雷鸟
  • 重新启动盒子

我还确保整个/etc/dovecot/conf.d/10-ssl.conf文件被注释掉,以防万一出现证书错误(或证书的权限错误),但我不认为这是有关。

它现在正在工作,重启后一切都显示正常。 希望这有助于未来的人。