Skip to content

Commit f08dd29

Browse files
author
Benny Bottema
committed
Fixed typo in RFC name
1 parent 0dfebdf commit f08dd29

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/org/simplejavamail/email/EmailPopulatingBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ public EmailPopulatingBuilder withRecipients(@Nullable String name, boolean fixe
10041004
*
10051005
* @param fixedName Indicates whether the provided name should be applied to all addresses, or only to those where a name is
10061006
* missing.
1007-
* @param oneOrMoreAddressesEach Collection of addresses. Each entry itself can be a delimited list of RFC822 addresses.
1007+
* @param oneOrMoreAddressesEach Collection of addresses. Each entry itself can be a delimited list of RFC2822 addresses.
10081008
*/
10091009
@SuppressWarnings("WeakerAccess")
10101010
@Nonnull
@@ -1090,12 +1090,12 @@ public EmailPopulatingBuilder withRecipient(@Nonnull final String singleAddress,
10901090
/**
10911091
* Adds a new {@link Recipient} instance with the given name, address and {@link RecipientType}.
10921092
* <p>
1093-
* Note that the email address must be a single address according to RFC822 format. Name can be provided explicitly or as part of the RFC822 email
1093+
* Note that the email address must be a single address according to RFC2822 format. Name can be provided explicitly or as part of the RFC2822 email
10941094
* address or omitted completely. If provided as method argument, the name overrides any nested name.
10951095
*
10961096
* @param name Optional explicit name. Can be included in the email address instead, or omitted completely. A name will show as {@code
10971097
* "Name Here <[email protected]>"}
1098-
* @param singleAddress A single address according to RFC822 format with or without personal name.
1098+
* @param singleAddress A single address according to RFC2822 format with or without personal name.
10991099
* @param recipientType Optional type of recipient. This is needed for TO, CC and BCC, but not for <em>bounceTo</em>, <em>returnReceiptTo</em>,
11001100
* <em>replyTo</em>, <em>from</em> etc.
11011101
*/
@@ -1108,7 +1108,7 @@ public EmailPopulatingBuilder withRecipient(@Nullable final String name, @Nonnul
11081108
/**
11091109
* Adds a new {@link Recipient} instance as copy of the provided recipient (copying name, address and {@link RecipientType}).
11101110
* <p>
1111-
* Note that the email address must be a single address according to RFC822 format. Name can be provided explicitly or as part of the RFC822 email
1111+
* Note that the email address must be a single address according to RFC2822 format. Name can be provided explicitly or as part of the RFC2822 email
11121112
* address or omitted completely.
11131113
*/
11141114
@SuppressWarnings("WeakerAccess")

src/main/java/org/simplejavamail/internal/util/MiscUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public static String[] extractEmailAddresses(@Nonnull final String emailAddressL
118118
* @param name The name to use as fixed name or as default (depending on <code>fixedName</code> flag). Regardless of that flag, if a name
119119
* is <code>null</code>, the other one will be used.
120120
* @param fixedName Determines if the given name should be used as override.
121-
* @param emailAddress An RFC822 compliant email address, which can contain a name inside as well.
121+
* @param emailAddress An RFC2822 compliant email address, which can contain a name inside as well.
122122
*/
123123
@Nonnull
124124
public static Recipient interpretRecipient(@Nullable final String name, boolean fixedName, @Nonnull final String emailAddress, @Nullable final RecipientType type) {

0 commit comments

Comments
 (0)