arnt commented on code in PR #2728:
URL: https://github.com/apache/james-project/pull/2728#discussion_r3959503389


##########
server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/DSNBounce.java:
##########
@@ -528,6 +542,20 @@ private void appendRecipient(StringBuilder buffer, 
MailAddress mailAddress, Stri
             .append(LINE_BREAK);
     }
 
+    private static String addrType(MailAddress mailAddress) {
+        return containsNonAscii(mailAddress) ? "utf-8" : "rfc822";
+    }
+
+    private static boolean containsNonAscii(MailAddress mailAddress) {

Review Comment:
   IMO it doesn't matter all that much. I'm happy with the way you did it in 
#3130 but IMO it's a case of 2% better/worse.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to