mirror of https://github.com/M66B/FairEmail.git
Prepare envelope from
This commit is contained in:
parent
4569ff5b2b
commit
bddae1af77
|
@ -332,6 +332,10 @@ public class EmailService implements AutoCloseable {
|
||||||
properties.put("mail." + protocol + ".ignorebodystructuresize", Boolean.toString(enabled));
|
properties.put("mail." + protocol + ".ignorebodystructuresize", Boolean.toString(enabled));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setMailFrom(String address) {
|
||||||
|
properties.put("mail." + protocol + ".from", address);
|
||||||
|
}
|
||||||
|
|
||||||
void setSendPartial(boolean enabled) {
|
void setSendPartial(boolean enabled) {
|
||||||
properties.put("mail." + protocol + ".sendpartial", Boolean.toString(enabled));
|
properties.put("mail." + protocol + ".sendpartial", Boolean.toString(enabled));
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,7 @@ import androidx.annotation.NonNull;
|
||||||
import androidx.room.ColumnInfo;
|
import androidx.room.ColumnInfo;
|
||||||
import androidx.room.Entity;
|
import androidx.room.Entity;
|
||||||
import androidx.room.ForeignKey;
|
import androidx.room.ForeignKey;
|
||||||
|
import androidx.room.Ignore;
|
||||||
import androidx.room.Index;
|
import androidx.room.Index;
|
||||||
import androidx.room.PrimaryKey;
|
import androidx.room.PrimaryKey;
|
||||||
|
|
||||||
|
@ -62,6 +63,8 @@ public class EntityIdentity {
|
||||||
public String name;
|
public String name;
|
||||||
@NonNull
|
@NonNull
|
||||||
public String email;
|
public String email;
|
||||||
|
@Ignore
|
||||||
|
public String envelopeFrom;
|
||||||
@NonNull
|
@NonNull
|
||||||
public Long account;
|
public Long account;
|
||||||
public String display;
|
public String display;
|
||||||
|
|
|
@ -793,6 +793,8 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||||
} else {
|
} else {
|
||||||
EmailService iservice = new EmailService(this, ident, EmailService.PURPOSE_USE, debug);
|
EmailService iservice = new EmailService(this, ident, EmailService.PURPOSE_USE, debug);
|
||||||
try {
|
try {
|
||||||
|
if (ident.envelopeFrom != null)
|
||||||
|
iservice.setMailFrom(ident.envelopeFrom);
|
||||||
if (send_partial)
|
if (send_partial)
|
||||||
iservice.setSendPartial(true);
|
iservice.setSendPartial(true);
|
||||||
iservice.setUseIp(ident.use_ip, ident.ehlo);
|
iservice.setUseIp(ident.use_ip, ident.ehlo);
|
||||||
|
|
Loading…
Reference in New Issue