mirror of https://github.com/M66B/FairEmail.git
parent
56b7e837ea
commit
88b0a5a616
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue