mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
parent
56b7e837ea
commit
88b0a5a616
1 changed files with 2 additions and 4 deletions
|
@ -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 a new issue