Extra without plus

This commit is contained in:
M66B
2018-12-01 13:21:15 +01:00
parent 5099d233e6
commit 206e7f22cc
3 changed files with 3 additions and 4 deletions

View File

@@ -197,8 +197,7 @@ public class MessageHelper {
String name = ((InternetAddress) message.from[0]).getPersonal();
if (email != null && !TextUtils.isEmpty(message.extra)) {
int at = email.indexOf('@');
boolean separator = Character.isLetterOrDigit(message.extra.charAt(0));
email = email.substring(0, at) + (separator ? "+" : "") + message.extra + email.substring(at);
email = email.substring(0, at) + message.extra + email.substring(at);
Log.i(Helper.TAG, "extra=" + email);
}
imessage.setFrom(new InternetAddress(email, name));