diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsSend.java b/app/src/main/java/eu/faircode/email/FragmentOptionsSend.java
index 652b2398f3..da21df32d1 100644
--- a/app/src/main/java/eu/faircode/email/FragmentOptionsSend.java
+++ b/app/src/main/java/eu/faircode/email/FragmentOptionsSend.java
@@ -50,6 +50,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
private SwitchCompat swSendReminders;
private Spinner spSendDelayed;
+ private SwitchCompat swAutoList;
private SwitchCompat swPrefixOnce;
private SwitchCompat swExtendedReply;
private SwitchCompat swQuoteReply;
@@ -69,7 +70,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
private final static String[] RESET_OPTIONS = new String[]{
"keyboard", "suggest_sent", "suggested_received", "suggest_frequently",
"send_reminders", "send_delayed",
- "prefix_once", "extended_reply", "quote_reply", "resize_reply",
+ "autolist", "prefix_once", "extended_reply", "quote_reply", "resize_reply",
"signature_location", "signature_reply", "signature_forward",
"plain_only", "format_flowed", "usenet_signature", "remove_signatures",
"receipt_default", "receipt_type", "lookup_mx"
@@ -93,6 +94,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
swSendReminders = view.findViewById(R.id.swSendReminders);
spSendDelayed = view.findViewById(R.id.spSendDelayed);
+ swAutoList = view.findViewById(R.id.swAutoList);
swPrefixOnce = view.findViewById(R.id.swPrefixOnce);
swExtendedReply = view.findViewById(R.id.swExtendedReply);
swQuoteReply = view.findViewById(R.id.swQuoteReply);
@@ -173,6 +175,13 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
}
});
+ swAutoList.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
+ @Override
+ public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
+ prefs.edit().putBoolean("autolist", checked).apply();
+ }
+ });
+
swPrefixOnce.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
@@ -342,6 +351,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
break;
}
+ swAutoList.setChecked(prefs.getBoolean("autolist", true));
swPrefixOnce.setChecked(prefs.getBoolean("prefix_once", true));
swExtendedReply.setChecked(prefs.getBoolean("extended_reply", false));
swQuoteReply.setChecked(prefs.getBoolean("quote_reply", true));
diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java
index 8617f9a483..9da2aa5c84 100644
--- a/app/src/main/java/eu/faircode/email/MessageHelper.java
+++ b/app/src/main/java/eu/faircode/email/MessageHelper.java
@@ -538,12 +538,17 @@ public class MessageHelper {
return;
}
+ SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
+ boolean autolist = prefs.getBoolean("autolist", true);
+ boolean format_flowed = prefs.getBoolean("format_flowed", false);
+
// Build html body
Document document = JsoupEx.parse(message.getFile(context));
// When sending message
if (identity != null) {
- HtmlHelper.convertLists(document);
+ if (autolist)
+ HtmlHelper.convertLists(document);
if (send) {
document.select("div[fairemail=signature]").removeAttr("fairemail");
@@ -605,9 +610,6 @@ public class MessageHelper {
}
}
- SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
- boolean format_flowed = prefs.getBoolean("format_flowed", false);
-
// multipart/mixed
// multipart/related
// multipart/alternative
diff --git a/app/src/main/res/layout/fragment_options_send.xml b/app/src/main/res/layout/fragment_options_send.xml
index e852045de7..a10a5ebedb 100644
--- a/app/src/main/res/layout/fragment_options_send.xml
+++ b/app/src/main/res/layout/fragment_options_send.xml
@@ -168,6 +168,18 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/spSendDelayed" />
+
+
Suggest addresses found in sent messages
Suggest addresses found in received messages
Sort suggested addresses on frequency of use
+ Automatically create lists
Prefix subject only once on replying or forwarding
Use extended reply/forward header
Quote replied text