Support catch all addresses

This commit is contained in:
M66B
2019-02-13 08:08:40 +00:00
parent ae6176df0d
commit 2f69c2b63a
3 changed files with 14 additions and 25 deletions

View File

@@ -207,7 +207,7 @@ public class MessageHelper {
String name = ((InternetAddress) message.from[0]).getPersonal();
if (email != null && !TextUtils.isEmpty(message.extra)) {
int at = email.indexOf('@');
email = email.substring(0, at) + message.extra + email.substring(at);
email = message.extra + email.substring(at);
Log.i("extra=" + email);
}
imessage.setFrom(new InternetAddress(email, name));