Send DSN to return path address

This commit is contained in:
M66B
2021-02-01 11:54:43 +01:00
parent be7d139f5d
commit c7040d1af1
7 changed files with 2387 additions and 5 deletions

View File

@@ -3619,9 +3619,12 @@ public class FragmentCompose extends FragmentBase {
if ("list".equals(action) && ref.list_post != null)
data.draft.to = ref.list_post;
else if ("dsn".equals(action) && ref.receipt_to != null)
data.draft.to = ref.receipt_to;
else {
else if ("dsn".equals(action)) {
if (EntityMessage.DSN_RECEIPT.equals(dsn) && ref.receipt_to != null)
data.draft.to = ref.receipt_to;
else if (EntityMessage.DSN_USER_UNKNOWN.equals(dsn) && ref.return_path != null)
data.draft.to = ref.return_path;
} else {
// Prevent replying to self
if (ref.replySelf(data.identities, ref.account)) {
data.draft.from = ref.from;