-
-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#107: Implemented forwarding, improved replying
#102: When parsing MimeMessage to Email, also include the Return-Path as bounceToAddress #95: When parsing MimeMessage to Email, also include the Return-Receipt-To #93: When parsing MimeMessage to Email, also include the Disposition-Notification-To Other: Overhauled MimeMessageParser to be more useful and usable (including better exceptions)
- Loading branch information
Showing
10 changed files
with
656 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
src/main/java/org/simplejavamail/converter/internal/mimemessage/MimeMessageException.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...ain/java/org/simplejavamail/converter/internal/mimemessage/MimeMessageParseException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package org.simplejavamail.converter.internal.mimemessage; | ||
|
||
import org.simplejavamail.MailException; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
|
||
import static org.simplejavamail.internal.util.Preconditions.checkNonEmptyArgument; | ||
|
||
/** | ||
* This exception is used to communicate errors during parsing of a {@link javax.mail.internet.MimeMessage}. | ||
* | ||
* @author Benny Bottema | ||
*/ | ||
@SuppressWarnings("serial") | ||
class MimeMessageParseException extends MailException { | ||
|
||
static final String INVALID_DOMAINKEY = "Error signing MimeMessage with DKIM"; | ||
static final String ERROR_PARSING_FROMADDRESS = "Error parsing from-address"; | ||
static final String ERROR_PARSING_ADDRESS = "Error parsing [%s] address"; | ||
static final String ERROR_PARSING_DISPOSITION = "Error parsing MimeMessage disposition"; | ||
static final String ERROR_PARSING_CONTENT = "Error parsing MimeMessage Content"; | ||
static final String ERROR_PARSING_MULTIPART_COUNT = "Error parsing MimeMessage multipart count"; | ||
static final String ERROR_GETTING_BODYPART_AT_INDEX = "Error getting bodypart at index %s"; | ||
static final String ERROR_GETTING_CONTENT_ID = "Error getting content ID"; | ||
static final String ERROR_GETTING_FILENAME = "Error getting file name"; | ||
static final String ERROR_GETTING_ALL_HEADERS = "Error getting all headers"; | ||
static final String ERROR_GETTING_DATAHANDLER = "Error getting data handler"; | ||
static final String ERROR_GETTING_CONTENT_TYPE = "Error getting content type"; | ||
static final String ERROR_GETTING_INPUTSTREAM = "Error getting input stream"; | ||
static final String ERROR_READING_CONTENT = "Error reading content"; | ||
static final String ERROR_DECODING_TEXT = "Error decoding text"; | ||
static final String ERROR_GETTING_RECIPIENTS = "Error getting [%s] recipient types"; | ||
static final String ERROR_GETTING_SUBJECT = "Error getting subject"; | ||
static final String ERROR_GETTING_MESSAGE_ID = "Error getting message ID"; | ||
static final String ERROR_PARSING_REPLY_TO_ADDRESSES = "Error parsing replyTo addresses"; | ||
|
||
MimeMessageParseException(@Nonnull final String message, @Nullable final Exception cause) { | ||
super(checkNonEmptyArgument(message, "message"), cause); | ||
} | ||
} |
Oops, something went wrong.