-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Message If Bounce Detection Or Unsubscribe Fails (#1418)
* feat: remove the email if bounce message failed * feat: refactor to just return and delete the message when it is multipart or textplain message and doesn't meet the requirements * Allow MimeMessageHelper as parameter in MailGatewaySmtp (#1420) * feat: little refactor in mailGatewaySmtp * feat: from can be different from whois-internal as well * feat: from should be always from mail.smtp * Roa Rpki Validator From Internal (#1419) * feat: move rao rpki validator common code from whois internal to whois * feat: move code into common module, add component and service and return an error if optional property is empty * feat: return null and add nullable annotation * feat: put less roas * Allow MimeMessageHelper as parameter in MailGatewaySmtp (#1420) * feat: little refactor in mailGatewaySmtp * feat: from can be different from whois-internal as well * feat: from should be always from mail.smtp * feat: fix a TODO typo and IT should work even if roas are not specified * Move RPKI Validator Dummifier to Correct Module (#1421) * feat: move dummifier class to correct module * feat: move roas.json to common * Final-Recipient: RFC822 is case insensitive (#1423) * Final-Recipient: RFC822 is case insensitive. * There may also be a space separator * feat: move all message logic from whois-internal to whois (#1424) * feat: runtime exception fix when using this module (#1425) * feat: do no return error if roas are not loaded (#1426) * Return 404 on invalid NRTMv4 notification file path (#1422) * _check_valid_notification_file * refactor --------- Co-authored-by: Ed Shryane <eshryane@ripe.net> * feat: fix logger issue (#1427) * remove_unused_code (#1429) * remove_unused_code * fix_tests * Revert changes to thread configuration in tests (#1415) * Handle Multiple Delivery Status Notification Failure Responses for the Same Email Address (#1417) * feat: remove message after error and catch DuplicateKeyException * feat: split the changes, just leave Catch in this PR * feat: catch the exception by email, no for all the emails. Turn the warn into debug * feat: put white space after try and before bracket * feat: just loop once * Added test to make sure the message doesn't get stuck * Fix test (rs.next() behaves the same if there is a result row or not) --------- Co-authored-by: Ed Shryane <eshryane@ripe.net> * feat: remove disabled and catch illegalStateException * feat: remove unused imports and add serialId to the exception * feat: return null in case unsubscription parsing do not succed * feat: fix tests * feat: log as info instead error when bouce detection or unsubscribing message fails, log as error when there is some unexpected error in the message --------- Co-authored-by: Ed Shryane <eshryane@ripe.net> Co-authored-by: maggarwal13 <50230916+maggarwal13@users.noreply.github.com>
- Loading branch information
1 parent
d63f19f
commit 775c529
Showing
8 changed files
with
64 additions
and
24 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
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
16 changes: 16 additions & 0 deletions
16
whois-api/src/main/java/net/ripe/db/whois/api/mail/exception/MailParsingException.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,16 @@ | ||
package net.ripe.db.whois.api.mail.exception; | ||
|
||
import org.eclipse.angus.mail.iap.ParsingException; | ||
|
||
import java.io.Serial; | ||
|
||
public class MailParsingException extends ParsingException { | ||
|
||
@Serial | ||
private static final long serialVersionUID = -1263525433251664387L; | ||
|
||
public MailParsingException(final String message) { | ||
super(message); | ||
} | ||
|
||
} |
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
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