This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch 3.8.x in repository https://gitbox.apache.org/repos/asf/james-project.git
commit e8d9fc67604cb5399e013fd763d2d37d95432f16 Author: Benoit Tellier <btell...@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-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org