diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 82c7230f..ce4b8863 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ -# Contributing to Eclipse Project for Jakarta Mail +# Contributing to Eclipse Project for Angus Mail Thanks for your interest in this project. @@ -16,21 +16,21 @@ included in the Java EE platform. Information regarding source code management, builds, coding standards, and more. -* [https://eclipse-ee4j.github.io/mail/Contributions](https://eclipse-ee4j.github.io/mail/Contributions) +* [https://eclipse-ee4j.github.io/angus-mail/Contributions](https://eclipse-ee4j.github.io/angus-mail/Contributions) * [https://projects.eclipse.org/projects/ee4j.mail/developer](https://projects.eclipse.org/projects/ee4j.mail/developer) The project maintains the following source code repositories -* [https://github.com/eclipse-ee4j/mail](https://github.com/eclipse-ee4j/mail) -* [https://github.com/eclipse-ee4j/mail-spec](https://github.com/eclipse-ee4j/mail-spec) -* [https://github.com/eclipse-ee4j/mail-tck](https://github.com/eclipse-ee4j/mail-tck) +* [https://github.com/eclipse-ee4j/angus-mail](https://github.com/eclipse-ee4j/angus-mail) +* [https://github.com/jakartaee/mail-spec](https://github.com/jakartaee/mail-spec) +* [https://github.com/jakartaee/mail-tck](https://github.com/jakartaee/mail-tck) ## Eclipse Contributor Agreement Before your contribution can be accepted by the project team contributors must electronically sign the Eclipse Contributor Agreement (ECA). -* [http://www.eclipse.org/legal/ECA.php](http://www.eclipse.org/legal/ECA.php) +* [https://www.eclipse.org/legal/ECA.php](https://www.eclipse.org/legal/ECA.php) Commits that are provided by non-committers must have a Signed-off-by field in the footer indicating that the author is aware of the terms by which the @@ -60,4 +60,4 @@ Jakarta EE specification projects. Contact the project developers via the project's "dev" list. -* [https://accounts.eclipse.org/mailing-list/mail-dev](https://accounts.eclipse.org/mailing-list/mail-dev) +* [https://accounts.eclipse.org/mailing-list/angus-dev](https://accounts.eclipse.org/mailing-list/angus-dev) diff --git a/NOTICE.md b/NOTICE.md index 4061966c..84d0d273 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -18,7 +18,7 @@ source code repository logs. This program and the accompanying materials are made available under the terms of the Eclipse Public License v. 2.0 which is available at -http://www.eclipse.org/legal/epl-2.0. This Source Code may also be made +https://www.eclipse.org/legal/epl-2.0/. This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License v. 2.0 are satisfied: GNU General Public License, version 2 with the GNU Classpath Exception which is diff --git a/README.md b/README.md index 7f2e65a9..1b12c8b6 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ the license text included in every source file. ## Contributing We use [contribution policy](CONTRIBUTING.md), which means we can only accept contributions under -the terms of [Eclipse Contributor Agreement](http://www.eclipse.org/legal/ECA.php). +the terms of [Eclipse Contributor Agreement](https://www.eclipse.org/legal/ECA.php). ## Links diff --git a/doc/src/main/resources/docs/CHANGES.txt b/doc/src/main/resources/docs/CHANGES.txt index ed5f2ba1..e6a5b6ab 100644 --- a/doc/src/main/resources/docs/CHANGES.txt +++ b/doc/src/main/resources/docs/CHANGES.txt @@ -1,6 +1,6 @@ For changes related to mail you can refer to this file: - https://raw.githubusercontent.com/eclipse-ee4j/angus-mail/master/doc/src/main/resources/CHANGES.txt + https://raw.githubusercontent.com/eclipse-ee4j/angus-mail/master/doc/src/main/resources/docs/CHANGES.txt Bug IDs can be found in the GitHub Issue Tracker for the Eclipse EE4J Angus Mail project: diff --git a/doc/src/main/resources/docs/NOTES.txt b/doc/src/main/resources/docs/NOTES.txt index 7e35c6bc..43509fc6 100644 --- a/doc/src/main/resources/docs/NOTES.txt +++ b/doc/src/main/resources/docs/NOTES.txt @@ -9,15 +9,15 @@ Welcome to the ${angus-mail.version} release of the Angus Mail implementation. Please refer to CHANGES.txt for a list of the changes since the previous release. -Please see the FAQ at https://eclipse-ee4j.github.io/mail/FAQ +Please see the FAQ at https://eclipse-ee4j.github.io/angus-mail/FAQ Protocol Providers ------------------ -The Angus Mail jar file "jakarta.mail.jar" includes the full Jakarta Mail +The Angus Mail jar file "angus-mail.jar" includes the full Jakarta Mail API implementation, the Angus Mail runtime and the Sun protocol providers - IMAP, SMTP, and POP3. The simplest way to use the Angus Mail is to just use the -jakarta.mail.jar file and ignore the other jar files in this package. +angus-mail.jar file and ignore the other jar files in this package. In some cases it may be desirable to minimize the size of the Jakarta Mail API code used by an application (e.g., in a microservice). @@ -70,10 +70,10 @@ configure SASL support. DSN Support ----------- -This release of Jakarta Mail includes EXPERIMENTAL support for creating +This release of Angus Mail includes EXPERIMENTAL support for creating and parsing Delivery Status Notifications, as defined by RFC 3462 and RFC 3464. To make use of this support you need to include dsn.jar -in your CLASSPATH along with jakarta.mail.jar. See the javadocs for the +in your CLASSPATH along with angus-mail.jar. See the javadocs for the com.sun.mail.dsn package for more details. The DSN package also provides support for creating and parsing Message @@ -87,7 +87,7 @@ applications using the current APIs. NTLM Support ------------ -This release of Jakarta Mail includes EXPERIMENTAL support for the +This release of Angus Mail includes EXPERIMENTAL support for the Microsoft NTLM authentication mechanism used by Exchange. See the file NTLMNOTES.txt for details. @@ -103,7 +103,7 @@ How to submit bug reports ------------------------- If you've found a bug, or if you just need help figuring out how to use -the Jakarta Mail API or Angus Mail API, please try to include the following information in +the Jakarta Mail API or Angus Mail, please try to include the following information in your message to us: - a program or code snippet that shows the problem @@ -125,19 +125,19 @@ Our response: Turn on session debugging and send us the protocol trace. session debugging for the demo programs. In your own program, call "session.setDebug(true);". -Your problem: jakarta.mail or jakarta.activation classes not found when +Your problem: angus.mail or jakarta.activation classes not found when compiling. -Our response: You didn't set CLASSPATH correctly to find jakarta.mail.jar and +Our response: You didn't set CLASSPATH correctly to find angus-mail.jar and jakarta.activation.jar. See README.txt. Your problem: NoSuchProviderException - No such provider for rfc822. -Our response: You unjar'ed jakarta.mail.jar. Don't. +Our response: You unjar'ed angus-mail.jar. Don't. Your problem: How do I create a message with an attachment? Our response: Create a message with a MimeMultipart content. See the sendfile.html and msgmultisendsample.java demo programs. -Please check the FAQ at https://eclipse-ee4j.github.io/mail/FAQ +Please check the FAQ at https://eclipse-ee4j.github.io/angus-mail/FAQ before submitting bug reports. Send your bug reports to: @@ -201,7 +201,7 @@ Check out our website at https://eclipse-ee4j.github.io/angus-mail/. You can also find help on StackOverflow: - https://stackoverflow.com/questions/tagged/javamail + https://stackoverflow.com/questions/tagged/jakarta-mail ------------------------------------------------------------------ diff --git a/providers/imap/src/main/java/org/eclipse/angus/mail/imap/package-info.java b/providers/imap/src/main/java/org/eclipse/angus/mail/imap/package-info.java index f28ae627..19068cb7 100644 --- a/providers/imap/src/main/java/org/eclipse/angus/mail/imap/package-info.java +++ b/providers/imap/src/main/java/org/eclipse/angus/mail/imap/package-info.java @@ -18,7 +18,7 @@ * An IMAP protocol provider for the Jakarta Mail API * that provides access to an IMAP message store. * Both the IMAP4 and IMAP4rev1 protocols are supported. - * Refer to + * Refer to * RFC 3501 * for more information. * The IMAP protocol provider also supports many IMAP extensions (described below). @@ -32,7 +32,7 @@ * UIDPLUS Support *
* The IMAP UIDPLUS extension - * (RFC 4315) + * (RFC 4315) * is supported via the IMAPFolder methods * {@link org.eclipse.angus.mail.imap.IMAPFolder#addMessages addMessages}, * {@link org.eclipse.angus.mail.imap.IMAPFolder#appendUIDMessages appendUIDMessages}, and @@ -41,7 +41,7 @@ * MOVE Support *
* The IMAP MOVE extension - * (RFC 6851) + * (RFC 6851) * is supported via the IMAPFolder methods * {@link org.eclipse.angus.mail.imap.IMAPFolder#moveMessages moveMessages} and * {@link org.eclipse.angus.mail.imap.IMAPFolder#moveUIDMessages moveUIDMessages}. @@ -49,17 +49,17 @@ * SASL Support *
* The IMAP protocol provider can use SASL
- * (RFC 4422)
+ * (RFC 4422)
* authentication mechanisms on systems that support the
* javax.security.sasl
APIs.
* The SASL-IR
- * (RFC 4959)
+ * (RFC 4959)
* capability is also supported.
* In addition to the SASL mechanisms that are built into
* the SASL implementation, users can also provide additional
* SASL mechanisms of their own design to support custom authentication
* schemes. See the
- *
+ *
* Java SASL API Programming and Deployment Guide for details.
* Note that the current implementation doesn't support SASL mechanisms
* that provide their own integrity or confidentiality layer.
@@ -67,12 +67,12 @@
* OAuth 2.0 Support
*
* Support for OAuth 2.0 authentication via the - * + * * XOAUTH2 authentication mechanism is provided either through the SASL * support described above or as a built-in authentication mechanism in the * IMAP provider. * The OAuth 2.0 Access Token should be passed as the password for this mechanism. - * See + * See * OAuth2 Support for details. *
* Connection Pool @@ -100,7 +100,7 @@ * QUOTA Support ** The IMAP QUOTA extension - * (RFC 2087) + * (RFC 2087) * is supported via the * {@link jakarta.mail.QuotaAwareStore QuotaAwareStore} interface implemented by * {@link org.eclipse.angus.mail.imap.IMAPStore IMAPStore}, and the @@ -109,7 +109,7 @@ * ACL Support *
* The IMAP ACL extension - * (RFC 2086) + * (RFC 2086) * is supported via the * {@link org.eclipse.angus.mail.imap.Rights Rights} class and the IMAPFolder methods * {@link org.eclipse.angus.mail.imap.IMAPFolder#getACL getACL}, @@ -123,7 +123,7 @@ * SORT Support *
* The IMAP SORT extension - * (RFC 5256) + * (RFC 5256) * is supported via the * {@link org.eclipse.angus.mail.imap.SortTerm SortTerm} class and the IMAPFolder * {@link org.eclipse.angus.mail.imap.IMAPFolder#getSortedMessages getSortedMessages} @@ -132,9 +132,9 @@ * CONDSTORE and QRESYNC Support *
* Basic support is provided for the IMAP CONDSTORE - * (RFC 4551) + * (RFC 4551) * and QRESYNC - * (RFC 5162) + * (RFC 5162) * extensions for the purpose of resynchronizing a folder after offline operation. * Of course, the server must support these extensions. * Use of these extensions is enabled by using the new @@ -182,7 +182,7 @@ * WITHIN Search Support *
* The IMAP WITHIN search extension - * (RFC 5032) + * (RFC 5032) * is supported via the * {@link org.eclipse.angus.mail.imap.YoungerTerm YoungerTerm} and * {@link org.eclipse.angus.mail.imap.OlderTerm OlderTerm} @@ -195,7 +195,7 @@ * LOGIN-REFERRAL Support *
* The IMAP LOGIN-REFERRAL extension - * (RFC 2221) + * (RFC 2221) * is supported. * If a login referral is received when connecting or when authentication fails, a * {@link org.eclipse.angus.mail.imap.ReferralException ReferralException} is thrown. @@ -206,7 +206,7 @@ * COMPRESS Support *
* The IMAP COMPRESS extension
- * (RFC 4978)
+ * (RFC 4978)
* is supported.
* If the server supports the extension and the
* mail.imap.compress.enable
property is set to "true",
@@ -215,7 +215,7 @@
* UTF-8 Support
*
* The IMAP UTF8 extension - * (RFC 6855) + * (RFC 6855) * is supported. * If the server supports the extension, the client will enable use of UTF-8, * allowing use of UTF-8 in IMAP protocol strings such as folder names. @@ -454,8 +454,8 @@ *
@@ -30,7 +30,7 @@ *
* Note that Jakarta Mail does not include a local store into * which messages can be downloaded and stored. See our - * + * * Third Party Products * web page for availability of "mbox" and "MH" local store providers. *
@@ -135,7 +135,7 @@ * ** The POP3 CAPA command (defined by - * RFC 2449) + * RFC 2449) * will be used to determine the capabilities supported by the server. * Some servers don't implement the CAPA command, and some servers don't * return correct information, so various properties are available to @@ -143,7 +143,7 @@ *
*
* If the server advertises the PIPELINING capability (defined by
- * RFC 2449),
+ * RFC 2449),
* or the mail.pop3.pipelining
property is set, the POP3
* provider will send some commands in batches, which can significantly
* improve performance and memory use.
@@ -362,8 +362,8 @@
*
* When sending a message, detailed information on each address that @@ -37,12 +37,12 @@ *
** The SMTP provider also supports ESMTP - * (RFC 1651). + * (RFC 1651). * It can optionally use SMTP Authentication - * (RFC 2554) + * (RFC 2554) * using the LOGIN, PLAIN, DIGEST-MD5, and NTLM mechanisms - * (RFC 4616 - * and RFC 2831). + * (RFC 4616 + * and RFC 2831). *
*
* To use SMTP authentication you'll need to set the mail.smtp.auth
@@ -98,14 +98,14 @@
*
* The SMTP protocol provider can use SASL
- * (RFC 2222)
+ * (RFC 2222)
* authentication mechanisms on systems that support the
* javax.security.sasl
APIs, such as J2SE 5.0.
* In addition to the SASL mechanisms that are built into
* the SASL implementation, users can also provide additional
* SASL mechanisms of their own design to support custom authentication
* schemes. See the
- *
+ *
* Java SASL API Programming and Deployment Guide for details.
* Note that the current implementation doesn't support SASL mechanisms
* that provide their own integrity or confidentiality layer.
@@ -117,17 +117,17 @@
* support described above or as a built-in authentication mechanism in the
* SMTP provider.
* The OAuth 2.0 Access Token should be passed as the password for this mechanism.
- * See
+ * See
* OAuth2 Support for details.
*
* SMTP can also optionally request Delivery Status Notifications
- * (RFC 1891).
+ * (RFC 1891).
* The delivery status will typically be reported using
* a "multipart/report"
- * (RFC 1892)
+ * (RFC 1892)
* message type with a "message/delivery-status"
- * (RFC 1894)
+ * (RFC 1894)
* part.
* You can use the classes in the org.eclipse.angus.mail.dsn
package to
* handle these MIME types.
@@ -146,7 +146,7 @@
*
* The SMTP protocol provider supports the CHUNKING extension defined in
- * RFC 3030.
+ * RFC 3030.
* Set the mail.smtp.chunksize
property to the desired chunk
* size in bytes.
* If the server supports the CHUNKING extension, the BDAT command will be
@@ -358,8 +358,8 @@
*
@@ -488,19 +487,19 @@
- Q: Where can I find a version of Jakarta Mail for my favorite
+ Q: Where can I find a version of Angus Mail for my favorite
operating system?
- A: Jakarta Mail is completely written in Java and will run on
+ A: Angus Mail is completely written in Java and will run on
any operating system that supports the required version of the JDK.
No special version is needed for different operating systems.
Q: Do the Jakarta Mail APIs work in web browsers?
- A: Jakarta Mail will work in any browser that supports the
+ A: Angus Mail will work in any browser that supports the
required JDK version.
- The
+ The
Java Plug-in may be required to provide such support.
- Q: Can I use Jakarta Mail to read mail from my web mail account
+ Q: Can I use Angus Mail to read mail from my web mail account
(such as Yahoo or Hotmail)?
A: It depends. Many web-based email services provide access only
- using a browser with HTTP. These services cannot be accessed using Jakarta Mail.
- If the service also provides POP3 or IMAP access, Jakarta Mail can probably
+ using a browser with HTTP. These services cannot be accessed using Angus Mail.
+ If the service also provides POP3 or IMAP access, Angus Mail can probably
be used to access it.
Contact your web email service provider for details.
Another helpful tool is MrPostman, a proxy server that provides POP3 access
to Hotmail and Yahoo! Mail, available at
- http://sourceforge.net/projects/mrpostman/
+ https://sourceforge.net/projects/mrpostman/
@@ -538,7 +536,7 @@
@@ -548,21 +546,21 @@
Q: What is MIME?
A: MIME and
- RFC822
+ RFC822
are the standards for describing email
messages that are sent across the Internet. The javax.mail.internet
subpackage (which is part of the Jakarta Mail APIs) provides a complete
implementation of these two packages. MIME is specified by the
- following RFCs: RFC2045,
- RFC2046,
- RFC2047.
+ following RFCs: RFC2045,
+ RFC2046,
+ RFC2047.
@@ -572,7 +570,7 @@
@@ -581,7 +579,7 @@
- Q: Is the Jakarta Mail API implementation completely free?
+ Q: Is Angus Mail completely free?
Can I ship it along with my product?
- A: Yes. The Jakarta Mail API implementation
- is completely free and open source and you can include it in your product.
+ A: Yes. Angus Mail
+ is completely free and open source, and you can include it in your product.
This release includes IMAP, POP3, and SMTP providers as well. Please do
read the license and ensure that you understand it.
- The Jakarta Mail license is described
+ The Angus Mail license is described
here.
- Q: Can I get the source code for the Jakarta Mail API - implementation? + Q: Can I get the source code for Angus Mail?
- Q: Is Jakarta Mail Y2K compliant?
- A: Yes. Oracle's Jakarta Mail implementation is Option-3 Y2K compliant. Please
+ Q: Is Angus Mail Y2K compliant?
@@ -663,28 +660,28 @@
- You can reach the Jakarta Mail team directly at - mail-dev@eclipse.org. + You can reach the Angus Mail team directly at + angus-dev@eclipse.org. You can use this address to report bugs. Bugs can also be reported using the Issue Tracker at the - Jakarta Mail project. + Angus Mail project.
- The Oracle Technology Network maintains a Jakarta Mail forum, see the - + The Oracle Technology Network maintained a Jakarta Mail forum, see the + Jakarta Mail Forum.
jGuru also maintains a Jakarta Mail FAQ, which you'll find at - - http://www.jguru.com/faq/Jakarta Mail, + + https://www.jguru.com/faq/Jakarta Mail, although it hasn't been updated in several years.
@@ -696,11 +693,11 @@- Q: How do I install the Jakarta Mail API implementation? + Q: How do I install Angus Mail?
Class-Path
header to the manifest file of your jar file.
See the
- Java Tutorial
+ Java Tutorial
and this
- Wikipedia article
+ Wikipedia article
for more information.
@@ -738,7 +735,7 @@ --add-modules java.activation
- to enable access the the javax.activation (JAF) classes.
+ to enable access the javax.activation (JAF) classes.
(Note that there's no "x" in the module name.)
Or, you need to include the
jakarta.activation.jar
@@ -756,7 +753,7 @@
- Q: How do I add the Jakarta Mail library to my NetBeans Java Project?
+ Q: How do I add the Angus Mail library to my NetBeans Java Project?
A:
@@ -767,24 +764,24 @@
- Q: How do I add the Jakarta Mail library to my Eclipse Java Project?
+ Q: How do I add the Angus Mail library to my Eclipse Java Project?
A:
- Create a "user library" for Jakarta Mail and add a reference to that library to
+ Create a "user library" for Angus Mail and add a reference to that library to
your project.
Now use the Jakarta Mail library in your Eclipse Java Project (Eclipse 3.4) +
Now use the Angus Mail library in your Eclipse Java Project (Eclipse 3.4)
- + This article - explains how to make the Jakarta Mail source code available to your Eclipse project. + explains how to make the Jakarta Mail API source code available to your Eclipse project.
- Q: Does Jakarta Mail include all the necessary mail servers?
+ Q: Does Angus Mail include all the necessary mail servers?
- A: No, the Jakarta Mail API package does not include any mail servers.
- To use the Jakarta Mail API package, you'll need to have access to an IMAP
+ A: No, the Angus Mail package does not include any mail servers.
+ To use the Angus Mail package, you'll need to have access to an IMAP
or POP3 mail server (for reading mail) and/or an SMTP mail server (for
sending mail).
These mail servers are usually provided by your Internet Service Provider
@@ -899,13 +896,13 @@
- Q: How do I configure Jakarta Mail to work through my proxy server?
+ Q: How do I configure Angus Mail to work through my proxy server?
- A: Starting with Jakarta Mail 1.6.0, Jakarta Mail supports accessing
+ A: Starting with Jakarta Mail 1.6.0, Angus Mail supports accessing
mail servers through a web proxy server.
Set the "mail.protocol.proxy.host" and "mail.protocol.proxy.port"
properties for the proxy server.
@@ -940,13 +937,13 @@
In addition, if your proxy server supports the SOCKS V4 or V5 protocol (http://www.socks.nec.com/aboutsocks.html, - RFC1928) + RFC1928) and allows anonymous connections, and you're using JDK 1.5 or newer and Jakarta Mail 1.4.5 or newer, you can configure a SOCKS proxy on a per-session, per-protocol basis by setting the "mail.smtp.socks.host" property as described in the javadocs for the - com.sun.mail.smtp package. + org.eclipse.angus.mail.smtp package. Similar properties exist for the "imap" and "pop3" protocols. Authentication for SOCKS servers is supported by the JDK by setting the "java.net.socks.username" and "java.net.socks.password" System properties @@ -955,28 +952,28 @@
- If you're using older versions of the JDK or Jakarta Mail, you can tell the Java
+ If you're using older versions of the JDK or Angus Mail, you can tell the Java
runtime to direct all TCP socket connections to the SOCKS server.
- See the
+ See the
Networking Properties guide
for the latest documentation of the socksProxyHost
and
socksProxyPort
properties. These are system-level properties,
- not Jakarta Mail session properties. They can be set from the command line
+ not Angus Mail session properties. They can be set from the command line
when the application is invoked, for example:
java -DsocksProxyHost=myproxy ...
.
This facility can be used to direct the SMTP, IMAP, and POP3
- communication from Jakarta Mail to the SOCKS proxy server. Note that
+ communication from Angus Mail to the SOCKS proxy server. Note that
setting these properties directs all TCP sockets to the SOCKS
proxy, which may have negative impact on other aspects of your
application.
- When using older versions of Jakarta Mail, and without such a SOCKS server, - if you want to use Jakarta Mail to access mail servers + When using older versions of Angus Mail, and without such a SOCKS server, + if you want to use Angus Mail to access mail servers outside the firewall indirectly, you might be able to use a program such as connect to tunnel TCP connections through an HTTP proxy server. - Configure Jakarta Mail to use the connect instance as the SOCKS server. + Configure Angus Mail to use the connect instance as the SOCKS server.
@@ -998,7 +995,7 @@
@@ -1035,20 +1032,20 @@
The problem is due to a buggy version of the unzip command used to unzip - the Jakarta Mail download package on Linux. The unzip command corrupts the - jakarta.mail.jar file. Get a newer version of the unzip command, or use the + the Angus Mail download package on Linux. The unzip command corrupts the + angus-mail.jar file. Get a newer version of the unzip command, or use the JDK's jar command to unzip the package.
- Q: How do I use Jakarta Mail in an application run under a SecurityManager;
- what permissions must I grant to the application and to Jakarta Mail?
+ Q: How do I use Angus Mail in an application run under a SecurityManager;
+ what permissions must I grant to the application and to Angus Mail?
- A: When using Jakarta Mail in an environment with a
- SecurityManager, Jakarta Mail will sometimes fail to read the configuration
- files in the jakarta.mail.jar file. The JavaBeans Activation Framework may
+ A: When using Angus Mail in an environment with a
+ SecurityManager, Angus Mail will sometimes fail to read the configuration
+ files in the angus-mail.jar file. The JavaBeans Activation Framework may
have the same problem reading configuration files from the jakarta.activation.jar
file. These default configuration files are stored as "resource" files
in the META-INF directory in the jar file.
@@ -1056,7 +1053,7 @@
There are a number of debugging techniques that can be used to determine
if this is the problem. Setting the Session property "mail.debug" to
- true (or calling session.setDebug(true)
) will cause Jakarta Mail
+ true (or calling session.setDebug(true)
) will cause Angus Mail
to print debugging messages as it attempts to load each configuration
file. A message of the form "DEBUG: can't load default providers file"
indicates that this problem might exist. Similarly, setting the System
@@ -1071,19 +1068,19 @@
In addition to the permissions necessary to read the configuration files,
- the application (and Jakarta Mail) will also need permission to connect to the
+ the application (and Angus Mail) will also need permission to connect to the
mail servers it uses. If the application uses System properties to
- configure Jakarta Mail (e.g., by passing the Properties object returned from
+ configure Angus Mail (e.g., by passing the Properties object returned from
System.getProperties()
to the Session constructor, as many
- of the Jakarta Mail demo programs do), it will also need permission to use
+ of the Angus Mail demo programs do), it will also need permission to use
the System Properties object. Alternatively, the application can use
its own Properties object and be sure to set the "mail.from" property
or the "mail.user" and "mail.host" properties (see the
InternetAddress.getLocalAddress() method).
- To allow an application to use Jakarta Mail under a SecurityManager, - the application, Jakarta Mail, and JAF will need permissions such as the + To allow an application to use Angus Mail under a SecurityManager, + the application, Angus Mail, and JAF will need permissions such as the following (be sure to replace the host and path names with appropriate values); add these to the security policy file used by the application:
@@ -1094,7 +1091,7 @@
- Q: How do I configure Tomcat to allow me to use Jakarta Mail in my
+ Q: How do I configure Tomcat to allow me to use Angus Mail in my
web application?
A:
- To run a web application using Jakarta Mail, you can add the Jakarta Mail
- jakarta.mail.jar file and, if you're not using JDK 1.6 or newer, the JavaBeans
+ To run a web application using Angus Mail, you can add the Angus Mail
+ angus-mail.jar file and, if you're not using JDK 1.6 or newer, the JavaBeans
Activation Framework
jakarta.activation.jar
file to the lib directory under the
directory in which you installed Tomcat. This will cause Tomcat to
include these jar files in its classpath automatically.
For details, see
-
+
JNDI Resources HOW-TO in the Tomcat documentation.
- Alternatively, you can package the jakarta.mail.jar file and jakarta.activation.jar + Alternatively, you can package the angus-mail.jar file and jakarta.activation.jar files in the lib directory of your web application package (war file).
- Q: When using Jakarta Mail in my servlet, it is unable to find any of
- the Jakarta Mail classes. I've added jakarta.mail.jar to the server's CLASSPATH.
+ Q: When using Angus Mail in my servlet, it is unable to find any of
+ the Angus Mail classes. I've added angus-mail.jar to the server's CLASSPATH.
A: It is often necessary to completely restart the web server
@@ -1173,38 +1170,38 @@
jre/lib/ext
directory of your JDK installation.
If you're running in a web server or application server, it may be
- providing its own version of jakarta.mail.jar in one of its directories.
- You should only have one version of jakarta.mail.jar available to your
+ providing its own version of angus-mail.jar in one of its directories.
+ You should only have one version of angus-mail.jar available to your
application.
- Q: My servlet can find the Jakarta Mail classes, but Jakarta Mail complains
+ Q: My servlet can find the Angus Mail classes, but Angus Mail complains
that it can't find a service provider for "smtp" or "imap" or address
type "rfc822".
- A: Usually this is because Jakarta Mail can't access the configuration
- files in jakarta.mail.jar, possibly because of a security permission problem;
+ A: Usually this is because Angus Mail can't access the configuration
+ files in angus-mail.jar, possibly because of a security permission problem;
see this item for more details.
- Also, make sure that you haven't extracted the jakarta.mail.jar contents;
- you should include the unmodified jakarta.mail.jar file in the server's CLASSPATH.
+ Also, make sure that you haven't extracted the angus-mail.jar contents;
+ you should include the unmodified angus-mail.jar file in the server's CLASSPATH.
- Q: How do I access Gmail with Jakarta Mail?
+ Q: How do I access Gmail with Angus Mail?
A:
- Jakarta Mail is capable of sending and reading messages using Gmail.
- All that's required is to properly configure Jakarta Mail. I'll
+ Angus Mail is capable of sending and reading messages using Gmail.
+ All that's required is to properly configure Angus Mail. I'll
illustrate the proper configuration using the
- demo programs that come with Jakarta Mail -
+ demo programs that come with Angus Mail -
msgshow.java
and smtpsend.java
.
You can use these programs for basic testing to ensure that
your networking is working properly, that you can connect to
@@ -1317,7 +1314,7 @@
- Q: How do I access Yahoo! Mail with Jakarta Mail?
+ Q: How do I access Yahoo! Mail with Angus Mail?
A:
- Jakarta Mail is capable of sending and reading messages using Yahoo! Mail.
- All that's required is to properly configure Jakarta Mail. I'll
+ Angus Mail is capable of sending and reading messages using Yahoo! Mail.
+ All that's required is to properly configure Angus Mail. I'll
illustrate the proper configuration using the
- demo programs that come with Jakarta Mail -
+ demo programs that come with Angus Mail -
msgshow.java
and smtpsend.java
.
@@ -1412,13 +1409,13 @@
- Q: How do I access Hotmail (Windows Live mail) with Jakarta Mail?
+ Q: How do I access Hotmail (Windows Live mail) with Angus Mail?
A:
- Jakarta Mail is capable of sending and reading messages using Hotmail.
- All that's required is to properly configure Jakarta Mail. I'll
+ Angus Mail is capable of sending and reading messages using Hotmail.
+ All that's required is to properly configure Angus Mail. I'll
illustrate the proper configuration using the
- demo programs that come with Jakarta Mail -
+ demo programs that come with Angus Mail -
msgshow.java
and smtpsend.java
.
@@ -1459,8 +1456,8 @@
The smtpsend program uses the System properties - when creating the Jakarta Mail Session, so the properties set on the - command line will be available to the Jakarta Mail Session. + when creating the Angus Mail Session, so the properties set on the + command line will be available to the Angus Mail Session.
The smtpsend program will prompt for a subject and message body text. @@ -1478,19 +1475,19 @@
For more details, search - + Windows Live Hotmail help for "POP3".
- Q: How do I access Outlook.com with Jakarta Mail?
+ Q: How do I access Outlook.com with Angus Mail?
A:
- Jakarta Mail is capable of sending and reading messages using Outlook.com.
- All that's required is to properly configure Jakarta Mail. I'll
+ Angus Mail is capable of sending and reading messages using Outlook.com.
+ All that's required is to properly configure Angus Mail. I'll
illustrate the proper configuration using the
- demo programs that come with Jakarta Mail -
+ demo programs that come with Angus Mail -
msgshow.java
and smtpsend.java
.
@@ -1536,8 +1533,8 @@
The smtpsend program uses the System properties - when creating the Jakarta Mail Session, so the properties set on the - command line will be available to the Jakarta Mail Session. + when creating the Angus Mail Session, so the properties set on the + command line will be available to the Angus Mail Session.
The smtpsend program will prompt for a subject and message body text. @@ -1567,7 +1564,7 @@
Q: Where can I learn the basics about Internet email that
- I'll need to know to program Jakarta Mail effectively?
+ I'll need to know to program Angus Mail effectively?
A: See one of the
books
@@ -1591,11 +1588,11 @@
- Q: Where can I find some example programs that show how to use Jakarta Mail?
+ Q: Where can I find some example programs that show how to use Angus Mail?
A: There are many example programs available for download
on the
- Jakarta Mail project page,
+ Angus Mail project page,
including simple command line programs illustrating various aspects of
the Jakarta Mail API, a Swing-based GUI application, a simple servlet-based
application, and a complete web application using JSP pages and a tag
@@ -1605,7 +1602,7 @@
Q: What are some of the most common mistakes people make
- when using Jakarta Mail?
+ when using Angus Mail?
A: Unfortunately, the internet is full of copy and paste
programmers who don't understand the code they're using, which has resulted
@@ -1624,11 +1621,11 @@
socketFactory
properties.
- Long, long ago Jakarta Mail didn't have built in support for SSL connections,
+ Long, long ago Angus Mail didn't have built in support for SSL connections,
so it was necessary to set these properties to use SSL.
This hasn't been the case for years; remove these properties and simplify
your code.
- The easiest way to enable SSL support in current versions of Jakarta Mail is
+ The easiest way to enable SSL support in current versions of Angus Mail is
to set the property "mail.smtp.ssl.enable" to "true".
(Replace "smtp" with "imap" or "pop3" as appropriate.)
attachFile
method of MimeBodyPart
.
@@ -1872,12 +1869,12 @@ ByteArrayDataSource
class in the javax.mail.util
- pacakge in Jakarta Mail 1.4 and later, or included in source code in the demo
- directory of older versions of the Jakarta Mail download package, can help.
+ package in Jakarta Mail 1.4 and later, or included in source code in the demo
+ directory of older versions of the Angus Mail download package, can help.
This class
will take a String
, byte array, or InputStream
and create a DataSource
object that you can use as follows:
@@ -1988,7 +1985,7 @@ InputStream
, it first copies all of the data in the stream
into memory. This is necessary because a DataSource
needs
to be able to supply multiple InputStream
objects so that
- Jakarta Mail can read the data once to determine what
+ Angus Mail can read the data once to determine what
Content-Transfer-Encoding is appropriate, and then read the data again
to include the data in the message.
@@ -1996,29 +1993,29 @@
Q: Can I read or send a Microsoft Office document using
- Jakarta Mail?
+ Angus Mail?
- A: Jakarta Mail can read a Microsoft Office document as an
- attachment and save that document in a file. Likewise, Jakarta Mail can attach a
+ A: Angus Mail can read a Microsoft Office document as an
+ attachment and save that document in a file. Likewise, Angus Mail can attach a
Microsoft Office document to a message and send it as an attachment.
Use the MimeBodyPart
saveFile and
attachFile methods.
To process the content of a Microsoft Office document you'll need a
separate library such as
- Apache POI.
+ Apache POI.
Q: How do I create or process calendar appointments?
- A: The iCal4j project
+ A: The iCal4j project
provides an API that might be useful.
More information about how different products, such as Microsoft Outlook,
support calendar appointments is available
- here.
- This blog entry
+ here.
+ This blog entry
might also be helpful.
@@ -2097,10 +2094,10 @@
NewlineOutputStream
+ NewlineOutputStream
converts to the local platform's line terminator and is useful when
writing a message to a file.
- CRLFOutputStream
+ CRLFOutputStream
converts to the MIME canonical CRLF line terminator and is useful
when the canonical MIME format is needed (e.g., to compute a digital
signature).
@@ -2114,7 +2111,7 @@ writeTo
method of a message gives you everything you need.
If you want to create an entire email system based on serialized messages,
- you should be able to subclass Message et. al. and implement Serializable
+ you should be able to subclass Message et al. and implement Serializable
in your subclass.
@@ -2184,9 +2181,8 @@
javax.mail.Message
and a few others. Then you add
the entry describing your provider to the javamail.providers
registry. If you're interested in writing a service provider for a protocol
- or messaging system not currently supported by the Jakarta Mail API
- implementation, please contact us at
- mail-dev@eclipse.org.
+ or messaging system not currently supported by Angus Mail, please contact us at
+ angus-dev@eclipse.org.
@@ -2201,14 +2197,14 @@
Note also that there's a bug in Exchange 2007. The Exchange server advertises that it supports AUTH=PLAIN, even though - + this Exchange documentation claims that it's not supported. - This causes Jakarta Mail to choose PLAIN authentication, which will always fail. + This causes Angus Mail to choose PLAIN authentication, which will always fail. To work around this Exchange bug, set the session property "mail.imap.auth.plain.disable" to "true". (Change "imap" to "imaps" if you're using the "imaps" protocol.) @@ -2220,7 +2216,7 @@
getInputStream
method will return the decoded
@@ -2234,7 +2230,7 @@ MimeUtility
methods are useful in cases that
- Jakarta Mail doesn't handle automatically for you. One such case that
+ Angus Mail doesn't handle automatically for you. One such case that
occurs frequently is encoding of filenames. The base MIME spec does not
allow header parameter values (such as the filename parameter) to be
encoded in the same way that (e.g.) the Subject header may be encoded.
@@ -2251,7 +2247,7 @@
Q: I have data that's already encoded in (e.g.) base64, how do I
- tell Jakarta Mail to send this data without re-encoding it?
+ tell Angus Mail to send this data without re-encoding it?
A: Use the PreencodedMimeBodyPart
class,
@@ -2260,12 +2256,12 @@
- Q: Even though Jakarta Mail does all the encoding and decoding for me,
+ Q: Even though Angus Mail does all the encoding and decoding for me,
I need to manually control the encoding for some body parts.
A: In the rare case that you need to control the encoding, there
- are several ways to override Jakarta Mail's default behavior. A simple
+ are several ways to override Angus Mail's default behavior. A simple
approach is as follows. After creating the entire message, call
msg.saveChanges()
and then use something like
mbp.setHeader("Content-Transfer-Encoding", "base64")
@@ -2280,7 +2276,7 @@
- Q: Why doesn't Jakarta Mail properly encode and decode filenames in
+ Q: Why doesn't Angus Mail properly encode and decode filenames in
non-ASCII character sets?
@@ -2288,7 +2284,7 @@
=?ISO-8859-15?B?5OTkLUluZm8ucGRm?=
are not part of the MIME spec. A filename of
the form =?A?B?C?=
is a perfectly valid filename,
- not an incorrectly encoded filename. Jakarta Mail does
+ not an incorrectly encoded filename. Angus Mail does
not encode and decode filenames by default because doing so
would violate the MIME spec.
@@ -2297,25 +2293,25 @@ If you choose to violate the MIME spec, in order to interoperate with other programs that also violate the - MIME spec, Jakarta Mail gives you all the tools you need to + MIME spec, Angus Mail gives you all the tools you need to do so. Starting with Jakarta Mail 1.4, setting the System properties "mail.mime.encodefilename" and "mail.mime.decodefilename" to "true" - will cause Jakarta Mail to encode and decode the filename parameter + will cause Angus Mail to encode and decode the filename parameter using the non-RFC 2231 MIME encoding.
- Applications using earlier versions of Jakarta Mail can use the following + Applications using earlier versions of Angus Mail can use the following workaround to encode a filename:
@@ -2328,7 +2324,7 @@
String filename = MimeUtility.decodeText(part.getFileName());
- Again, this is primarily for applications using old versions of Jakarta Mail. + Again, this is primarily for applications using old versions of Angus Mail. Most applications should never need to use these methods.
@@ -2362,7 +2358,7 @@java -Dmail.debug=true ...
Usually, when you get a low level SocketException @@ -2411,7 +2407,7 @@
If you've succeeded in connecting with telnet, the next thing to do is to turn on Session debugging and get the protocol - trace when Jakarta Mail tries to connect to the remote machine, + trace when Angus Mail tries to connect to the remote machine, as described above. This will often include more detailed error messages from the server that will indicate the real source of the problem. @@ -2466,9 +2462,9 @@
Q: I can read messages from my IMAP server with other mail clients,
- but even though I can connect to the server using Jakarta Mail, when I use
- Jakarta Mail to read some messages it fails. Doesn't that mean there's a bug
- in Jakarta Mail?
+ but even though I can connect to the server using Angus Mail, when I use
+ Angus Mail to read some messages it fails. Doesn't that mean there's a bug
+ in Angus Mail?
A: No, not usually. Most other mail clients make very little
@@ -2485,7 +2481,7 @@
The best approach when running into server bugs of this sort is to contact the vendor of the server and get them to fix their product. Contact - mail-dev@eclipse.org and we'll help you + angus-dev@eclipse.org and we'll help you pinpoint the problem so that you can report it to the server vendor. If you can't get a fix from the server vendor, the following technique will often allow you to work around these server bugs: @@ -2543,10 +2539,10 @@
@@ -2627,7 +2623,7 @@
getContent()
is used.
Typically,
such bodyparts internally hold their textual data in some non Unicode
- charset. Jakarta Mail (through the corresponding DataContentHandler)
+ charset. Angus Mail (through the corresponding DataContentHandler)
attempts to convert that data into a Unicode string.
The underlying JDK's charset converters are used to do this.
If the JDK does not support a particular charset, then the
@@ -2661,8 +2657,8 @@ You can also add an alias for an existing charset already supported @@ -2719,10 +2715,11 @@
Part of the key to understanding how this works is understanding when the server is allowed to notify the client of new messages, and when - Jakarta Mail will see those notifications. Between getting the number of - messages and adding the listener, Jakarta Mail won't see any notifications + Angus Mail will see those notifications. Between getting the number of + messages and adding the listener, Angus Mail won't see any notifications of new messages. By the time you do an operation that will allow - Jakarta Mail to see the notification, the listener will be in place. + Angus Mail to see the notification, the listener will be in place. +
The following code illustrates the general approach. Many details have @@ -2881,7 +2878,7 @@
Alternatively, you can construct a MIME multipart/related
- message. See RFC2387
+ message. See RFC2387
for details of the structure of such a message.
A simple example follows:
Transport.send(msg);
with
Transport.send(msg, username, password);
.
@@ -3103,7 +3100,7 @@ mail.smtp.from
property
can then be set on each Properties object for each Session (and thus
each thread) independently.
- Alternatively, each thread can use the com.sun.mail.SMTPMessage
+ Alternatively, each thread can use the org.eclipse.angus.mail.SMTPMessage
class. The setEnvelopeFrom
method on that class can be used
to set this value. With this approach, all threads can use the same Session.
@@ -3163,7 +3160,7 @@ @@ -3192,9 +3189,9 @@
@@ -3209,18 +3206,18 @@
There are a number of techniques and heuristics for dealing with this problem - none of them perfect. One technique is Variable Envelope Return Paths, described at - http://cr.yp.to/proto/verp.txt. - The use of VERP with Jakarta Mail and Apache James is described - here. + https://cr.yp.to/proto/verp.txt. + The use of VERP with Angus Mail and Apache James is described + here.
@@ -3242,7 +3239,7 @@
javax.mail.SendFailedException: 550 Unable to relay for
my-address
?
com.sun.mail.pop3
package documentation for details.
+ the org.eclipse.angus.mail.pop3
package documentation for details.
Q: How can I tell which messages are new with POP3?
A: The POP3 protocol doesn't provide support for any permanent flags
- so the RECENT flag is of no use. The com.sun.mail.pop3
package
+ so the RECENT flag is of no use. The org.eclipse.angus.mail.pop3
package
documentation discusses several strategies for dealing with this problem.
MessageCountListener
interface with POP3. See the
- com.sun.mail.pop3
package documentation
+ org.eclipse.angus.mail.pop3
package documentation
for more information.
@@ -3375,7 +3372,7 @@ As above, you've mixed versions of the POP3 - provider and jakarta.mail.jar. You probably have an older version of - jakarta.mail.jar in your CLASSPATH before the newer version that includes + provider and angus-mail.jar. You probably have an older version of + angus-mail.jar in your CLASSPATH before the newer version that includes the POP3 provider.
@@ -3439,10 +3436,10 @@TOP
command than they do from the RETR
- command. This can cause all sorts of strange failures in Jakarta Mail.
+ command. This can cause all sorts of strange failures in Angus Mail.
One solution is to disable use of the TOP
command,
as described above. Another approach
- that works in some cases os to tell Jakarta Mail to forget about the
+ that works in some cases os to tell Angus Mail to forget about the
headers it retrieved using the TOP
command after
retrieving the entire message using the RETR
command.
To do this, set the property "mail.pop3.forgettopheaders" to "true".
@@ -3450,69 +3447,69 @@
- Q: Can I use Jakarta Mail in servlets?
+ Q: Can I use Angus Mail in servlets?
A:
Yes, see the Installation and Configuration section above for more details.
The Jakarta Mail API is also a required part of the
-
+
Java Platform, Enterprise Edition (Java EE).
- No installation or configuration is necessary when using Jakarta Mail
+ No installation or configuration is necessary when using Angus Mail
in a Java EE product, it's just there!
- Q: My web application uses Jakarta Mail to attach and send a file that
+ Q: My web application uses Angus Mail to attach and send a file that
the user specifies, but my application can't find the file.
A: If the user species the filename in an HTML form in the browser,
the filename is normally the name of a file on the user's machine, not on
the server. The file will need to be uploaded to the server before
- Jakarta Mail can access it.
- The
- Apache Jakarta Commons FileUpload package can help.
+ Angus Mail can access it.
+ The
+ Apache Commons FileUpload package can help.
- Q: Can I use Jakarta Mail in applets?
+ Q: Can I use Angus Mail in applets?
A:
- Yes, Jakarta Mail will work in applets in browsers that support the
+ Yes, Angus Mail will work in applets in browsers that support the
required JDK version.
- The
+ The
Java Plug-in may be required to provide such support.
- Q: What are the security implications of using Jakarta Mail in an applet?
+ Q: What are the security implications of using Angus Mail in an applet?
A: One of the biggest
- issues with using Jakarta Mail in applets is the default applet security
+ issues with using Angus Mail in applets is the default applet security
restrictions. These restrictions only allow applets to connect to the
- host from which they were loaded. Thus, for such applets to use Jakarta Mail,
+ host from which they were loaded. Thus, for such applets to use Angus Mail,
the mail server will need to be located on the same machine as the web
server from which the applet is loaded. You can find more information
on the applet security model
-
+
here.