Dummy EHLO

This commit is contained in:
M66B 2020-11-11 15:09:58 +01:00
parent 2187e526af
commit d1203ee62d
1 changed files with 2 additions and 0 deletions

View File

@ -633,6 +633,8 @@ public class EmailService implements AutoCloseable {
}
static String getDefaultEhlo() {
if (BuildConfig.APPLICATION_ID.startsWith("eu.faircode.email"))
return "dummy.faircode.eu";
String[] c = BuildConfig.APPLICATION_ID.split("\\.");
Collections.reverse(Arrays.asList(c));
return TextUtils.join(".", c);