1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Revert "Small improvement"

This reverts commit 0fcd6b637c.
This commit is contained in:
M66B 2019-11-02 10:14:48 +01:00
parent 56b7e837ea
commit 88b0a5a616

View file

@ -146,12 +146,10 @@ public class MessageHelper {
imessage.addHeader("X-Correlation-ID", message.msgid);
// Addresses
if (identity != null && identity.sender_extra &&
!TextUtils.isEmpty(message.extra) &&
message.from != null && message.from.length > 0) {
if (message.from != null && message.from.length > 0) {
String email = ((InternetAddress) message.from[0]).getAddress();
String name = ((InternetAddress) message.from[0]).getPersonal();
if (email != null) {
if (email != null && identity != null && identity.sender_extra && !TextUtils.isEmpty(message.extra)) {
int at = email.indexOf('@');
email = message.extra + email.substring(at);
Log.i("extra=" + email);