mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 17:27:00 +00:00
Edit as new with all addresses
This commit is contained in:
parent
6953aaee33
commit
08ccb106bc
1 changed files with 11 additions and 0 deletions
|
@ -3197,6 +3197,17 @@ public class FragmentCompose extends FragmentBase {
|
||||||
subject = unprefix(subject, fwd);
|
subject = unprefix(subject, fwd);
|
||||||
data.draft.subject = Helper.getString(context, ref.language, R.string.title_subject_forward, subject);
|
data.draft.subject = Helper.getString(context, ref.language, R.string.title_subject_forward, subject);
|
||||||
} else if ("editasnew".equals(action)) {
|
} else if ("editasnew".equals(action)) {
|
||||||
|
if (ref.from != null && ref.from.length == 1) {
|
||||||
|
String from = ((InternetAddress) ref.from[0]).getAddress();
|
||||||
|
for (EntityIdentity identity : data.identities)
|
||||||
|
if (identity.email.equals(from)) {
|
||||||
|
selected = identity;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
data.draft.to = ref.to;
|
||||||
|
data.draft.cc = ref.cc;
|
||||||
|
data.draft.bcc = ref.bcc;
|
||||||
data.draft.subject = ref.subject;
|
data.draft.subject = ref.subject;
|
||||||
if (ref.content) {
|
if (ref.content) {
|
||||||
String html = Helper.readText(ref.getFile(context));
|
String html = Helper.readText(ref.getFile(context));
|
||||||
|
|
Loading…
Reference in a new issue