Handle unsubscribe email address without scheme

This commit is contained in:
M66B 2022-01-05 20:45:26 +01:00
parent 8fd3426ea4
commit 93e7f556ea
1 changed files with 3 additions and 1 deletions

View File

@ -1806,7 +1806,9 @@ public class MessageHelper {
Log.w(new Throwable(unsubscribe, ex));
}
}
} else {
} else if (Helper.EMAIL_ADDRESS.matcher(unsubscribe).matches())
mailto = "mailto:" + unsubscribe;
else {
if (link == null) {
Uri uri = Uri.parse(unsubscribe);
String scheme = uri.getScheme();