diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index b7af680f8d..b0f9ea9e8b 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -326,6 +326,10 @@ public class FragmentCompose extends FragmentBase { private static ExecutorService executor = Helper.getBackgroundExecutor(1, "encrypt"); + private static final List DO_NOT_REPLY = Collections.unmodifiableList(Arrays.asList( + "noreply", "no-reply", "do-not-reply" + )); + @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -5796,11 +5800,11 @@ public class FragmentCompose extends FragmentBase { String username = UriHelper.getEmailUser(email); if (!TextUtils.isEmpty(username)) { username = username.toLowerCase(Locale.ROOT); - if (username.contains("noreply") || - username.contains("no-reply")) { - noreply = true; - break; - } + for (String value : DO_NOT_REPLY) + if (username.contains(value)) { + noreply = true; + break; + } } } args.putBoolean("remind_noreply", noreply);