Check recipients for return path

This commit is contained in:
M66B 2021-03-08 08:13:44 +01:00
parent b6404d6c2d
commit 777adf8650
1 changed files with 6 additions and 0 deletions

View File

@ -2426,6 +2426,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
canBounce = false;
break;
}
if (canBounce)
for (Address recipient : recipients)
if (MessageHelper.equalEmail(recipient, message.return_path[0])) {
canBounce = false;
break;
}
}
PopupMenuLifecycle popupMenu = new PopupMenuLifecycle(context, getViewLifecycleOwner(), anchor);