mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 02:50:56 +01:00
Added support for in-reply-to in mailto links
This commit is contained in:
@@ -32,6 +32,7 @@ import androidx.fragment.app.FragmentManager;
|
||||
import androidx.fragment.app.FragmentTransaction;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Map;
|
||||
|
||||
public class ActivityCompose extends ActivityBase implements FragmentManager.OnBackStackChangedListener {
|
||||
static final int PI_REPLY = 1;
|
||||
@@ -103,6 +104,14 @@ public class ActivityCompose extends ActivityBase implements FragmentManager.OnB
|
||||
if (subject != null)
|
||||
args.putString("subject", subject);
|
||||
|
||||
Map<String, String> headers = mailto.getHeaders();
|
||||
if (headers != null)
|
||||
for (String key : headers.keySet())
|
||||
if ("in-reply-to".equalsIgnoreCase(key)) {
|
||||
args.putString("inreplyto", headers.get(key));
|
||||
break;
|
||||
}
|
||||
|
||||
String body = mailto.getBody();
|
||||
if (body != null) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
Reference in New Issue
Block a user