mirror of https://github.com/M66B/FairEmail.git
Handle unsubscribe email address without scheme
This commit is contained in:
parent
8fd3426ea4
commit
93e7f556ea
|
@ -1806,7 +1806,9 @@ public class MessageHelper {
|
||||||
Log.w(new Throwable(unsubscribe, ex));
|
Log.w(new Throwable(unsubscribe, ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else if (Helper.EMAIL_ADDRESS.matcher(unsubscribe).matches())
|
||||||
|
mailto = "mailto:" + unsubscribe;
|
||||||
|
else {
|
||||||
if (link == null) {
|
if (link == null) {
|
||||||
Uri uri = Uri.parse(unsubscribe);
|
Uri uri = Uri.parse(unsubscribe);
|
||||||
String scheme = uri.getScheme();
|
String scheme = uri.getScheme();
|
||||||
|
|
Loading…
Reference in New Issue