📄 package-summary.html
字号:
<TD>The <code>mail.mime.decodetext.strict</code> property controlsdecoding of MIME encoded words. The MIME spec requires that encodedwords start at the beginning of a whitespace separated word. Somemailers incorrectly include encoded words in the middle of a word.If the <code>mail.mime.decodetext.strict</code> System property isset to <code>"false"</code>, an attempt will be made to decode theseillegal encoded words. The default is true.</TD></TR><TR><TD>mail.mime.encodeeol.strict</TD><TD>boolean</TD><TD>The <code>mail.mime.encodeeol.strict</code> property controls thechoice of Content-Transfer-Encoding for MIME parts that are not oftype "text". Often such parts will contain textual data for whichan encoding that allows normal end of line conventions is appropriate.In rare cases, such a part will appear to contain entirely textualdata, but will require an encoding that preserves CR and LF characterswithout change. If the <code>mail.mime.encodeeol.strict</code>System property is set to <code>"true"</code>, such an encoding willbe used when necessary. The default is false.</TD></TR><TR><TD>mail.mime.decodefilename</TD><TD>boolean</TD><TD>If set to <code>"true"</code>, the <code>getFileName</code> methoduses the <code>MimeUtility</code>method <code>decodeText</code> to decode anynon-ASCII characters in the filename. Note that this decodingviolates the MIME specification, but is useful for interoperatingwith some mail clients that use this convention.The default is false.</TD></TR><TR><TD>mail.mime.encodefilename</TD><TD>boolean</TD><TD>If set to <code>"true"</code>, the <code>setFileName</code> methoduses the <code>MimeUtility</code>method <code>encodeText</code> to encode anynon-ASCII characters in the filename. Note that this encodingviolates the MIME specification, but is useful for interoperatingwith some mail clients that use this convention.The default is false.</TD></TR><TR><TD>mail.mime.decodeparameters</TD><TD>boolean</TD><TD>If set to <code>"true"</code>, non-ASCII parameters in a<code>ParameterList</code>, e.g., in a Content-Type header,will be encoded as specified by<A HREF="http://www.ietf.org/rfc/rfc2231.txt" TARGET="_top">RFC 2231</A>.The default is false.</TD></TR><TR><TD>mail.mime.encodeparameters</TD><TD>boolean</TD><TD>If set to <code>"true"</code>, non-ASCII parameters in a<code>ParameterList</code>, e.g., in a Content-Type header,will be decoded as specified by<A HREF="http://www.ietf.org/rfc/rfc2231.txt" TARGET="_top">RFC 2231</A>.The default is false.</TD></TR><TR><TD>mail.mime.multipart. ignoremissingendboundary</TD><TD>boolean</TD><TD>Normally, when parsing a multipart MIME message, a message that ismissing the final end boundary line is not considered an error.The data simply ends at the end of the input. Note that messagesof this form violate the MIME specification. If the property<code>mail.mime.multipart.ignoremissingendboundary</code> is setto <code>false</code>, such messages are considered an error and a<code>MesagingException</code> will be thrown when parsing such amessage.</TD></TR><TR><TD>mail.mime.multipart. ignoremissingboundaryparameter</TD><TD>boolean</TD><TD>If the Content-Type header for a multipart content does not havea <code>boundary</code> parameter, the multipart parsing codewill look for the first line in the content that looks like aboundary line and extract the boundary parameter from the line.If this property is set to <code>"false"</code>, a<code>MessagingException</code> will be thrown if the Content-Typeheader doesn't specify a boundary parameter.The default is true.</TD></TR></TABLE><P>The following properties are supported by Sun's implementation ofJavaMail, but are not currently a required part of the specification.As above, these must be set as <CODE>System</CODE> properties.The names, types, defaults, and semantics of these properties maychange in future releases.<P><TABLE BORDER><TR><TH>Name</TH><TH>Type</TH><TH>Description</TH></TR><TR><TD>mail.mime.base64.ignoreerrors</TD><TD>boolean</TD><TD>If set to <code>"true"</code>, the BASE64 decoder will ignore errorsin the encoded data, returning EOF. This may be useful when dealingwith improperly encoded messages that contain extraneous data at theend of the encoded stream. Note however that errors anywhere in thestream will cause the decoder to stop decoding so this should be usedwith extreme caution. The default is false.</TD></TR><TR><TD>mail.mime.foldtext</TD><TD>boolean</TD><TD>If set to <code>"true"</code>, header fields containing just textsuch as the <code>Subject</code> and <code>Content-Description</code>header fields, and long parameter values in structured headers suchas <code>Content-Type</code> will be folded (broken into 76 character lines)when set and unfolded when read. The default is true.</TD></TR><TR><TD>mail.mime.setcontenttypefilename</TD><TD>boolean</TD><TD>If set to <code>"true"</code>, the <code>setFileName</code> methodwill also set the <code>name</code> parameter on the <code>Content-Type</code>header to the specified filename. This supports interoperability withsome old mail clients. The default is true.</TD></TR><TR><TD>mail.mime.setdefaulttextcharset</TD><TD>boolean</TD><TD>When updating the headers of a message, a bodypart with a <code>text</code> content type but no <code>charset</code>parameter will have a <code>charset</code> parameter added to itif this property is set to <code>"true"</code>.The default is true.</TD></TR><TR><TD>mail.mime.applefilenames</TD><TD>boolean</TD><TD>Apple Mail incorrectly encodes filenames that contain spaces,forgetting to quote the parameter value. If this property isset to <code>"true"</code>, JavaMail will try to detect thissituation when parsing parameters and work around it.The default is false.</TD></TR><TR><TD>mail.alternates</TD><TD>String</TD><TD>A string containing other email addresses that the current user is known by.The <code>MimeMessage</code> <code>reply</code> method will eliminate anyof these addresses from the recipient list in the message it constructs,to avoid sending the reply back to the sender.</TD></TR><TR><TD>mail.replyallcc</TD><TD>boolean</TD><TD>If set to <code>"true"</code>, the <code>MimeMessage</code><code>reply</code> method will put all recipients except the originalsender in the <code>Cc</code> list of the newly constructed message.Normally, recipients in the <code>To</code> header of the originalmessage will also appear in the <code>To</code> list of the newlyconstructed message.</TD></TR></TABLE><P><P><DL></DL><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/mail/event/package-summary.html"><B>PREV PACKAGE</B></A> <A HREF="../../../javax/mail/search/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?javax/mail/internet/package-summary.html" target="_top"><B>FRAMES</B></A> <A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../legal/license.html" target="_top">license terms.</a></font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -