English 中文(简体)
Javamail 信头解析错误
原标题:Javamail header parsing error

我使用 Javamail 库从 Postfix 电子邮件服务器上获取信件。 我遇到一些发送失败通知的问题。 我追踪到页眉解析程序, 试图解析以下页眉时会遇到例外 :

content- Type: 多部分/ 混合; 边界=- - - - - MSS7_ NDR_ MIME_ 边界 < /code >

查看了邮件.jar 库的源代码 (版本 1.4.5) 之后, 我得到的例外被扔出 javax.mail.internet.ParameterList(Strings) 构建器 - 信头似乎没有象我所期望的那样被象征性化, 它看起来像四个 HYPHENS 之后的 EQUALS Signation 正在引起问题, 因为如果我移除它, 并将边界更改为 < code>---_IMSSS7_NDR_MIME_Boundary , 信息分析器就很好了 。

这是Javamail 或我的邮件服务器中的错误吗? 我认为后者是因为通过 IETF 验证器 < a href > 管理邮件。 “http://tools. ietf.org/tools/msglint/" rel="nofollow" > http://tools.ietf.org/tools/msglint/ 。 它告诉我内容- Type 线有错误。 如果是 Postfix 中的错误, 有没有办法解决这个问题?

最佳回答

是的, 它在创建信件的程序中是一个错误。 很可能不是您的邮件服务器。 请尝试设置系统属性“ mail.mime. parameters. stricts. strict” 以“ false ” 。 更多关于属性 < a href=' http://javamail. kenai. com/ nonav/javadocs/javax/ mail/ internet/ package- summary. html" rel=“ no follow” >这里

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签