chibenwa commented on code in PR #1758: URL: https://github.com/apache/james-project/pull/1758#discussion_r1365850912
########## server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/RecipientRewriteTableProcessor.java: ########## @@ -226,8 +229,21 @@ static ForwardDecision sendACopy(MailetContext context, MailAddress originalReci return mail -> { MailImpl copy = MailImpl.duplicate(mail); try { + Optional<Attribute> attribute = copy.getAttribute(AttributeName.FORWARDED_MAIL_ADDRESSES_ATTRIBUTE_NAME); + if (attribute.isPresent()) { Review Comment: Please use Optional primitive (map, etc.. ) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org