You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2023/06/14 01:48:44 UTC
[james-project] 06/07: JAMES-3914 ActionUtils: drop no longer used method
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 028b4ca07b637a41c66694b3a5f873563a1dedef
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Mon Jun 12 16:26:41 2023 +0700
JAMES-3914 ActionUtils: drop no longer used method
---
.../james/transport/mailets/jsieve/ActionUtils.java | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/jsieve/ActionUtils.java b/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/jsieve/ActionUtils.java
index 94884c1261..692ef0e9e1 100644
--- a/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/jsieve/ActionUtils.java
+++ b/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/jsieve/ActionUtils.java
@@ -40,21 +40,6 @@ public class ActionUtils {
private static final String ATTRIBUTE_PREFIX = ActionUtils.class.getPackage().getName() + ".";
- /**
- * Answers the sole intended recipient for aMail.
- */
- public static MailAddress getSoleRecipient(Mail aMail) throws MessagingException {
- if (aMail.getRecipients() == null) {
- throw new MessagingException("Invalid number of recipients - 0"
- + ". Exactly 1 recipient is expected.");
- } else if (1 != aMail.getRecipients().size()) {
- throw new MessagingException("Invalid number of recipients - "
- + aMail.getRecipients().size()
- + ". Exactly 1 recipient is expected.");
- }
- return aMail.getRecipients().iterator().next();
- }
-
/**
* Detect and handle locally looping mail. External loop detection is left
* to the MTA.
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org