1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 01:06:04 +00:00

Edit as new with all addresses

This commit is contained in:
M66B 2020-04-03 21:23:09 +02:00
parent 6953aaee33
commit 08ccb106bc

View file

@ -3197,6 +3197,17 @@ public class FragmentCompose extends FragmentBase {
subject = unprefix(subject, fwd);
data.draft.subject = Helper.getString(context, ref.language, R.string.title_subject_forward, subject);
} 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;
if (ref.content) {
String html = Helper.readText(ref.getFile(context));