Experiment: fast forward

master
M66B 6 days ago
parent 872cc87a5b
commit e7f91c9c3a

@ -4267,6 +4267,12 @@ See [this FAQ](#faq71)
<br /> <br />
*Fast forward (1.2226+)*
Show (fast) *Forward to* in the answer menu, with adresses recently used for forwarding messages.
<br />
<a name="faq126"></a> <a name="faq126"></a>
**(126) Can message previews be sent to my smartwatch?** **(126) Can message previews be sent to my smartwatch?**

@ -4074,6 +4074,9 @@ public class FragmentMessages extends FragmentBase
protected ReplyData onExecute(Context context, Bundle args) { protected ReplyData onExecute(Context context, Bundle args) {
long id = args.getLong("id"); long id = args.getLong("id");
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean experiments = prefs.getBoolean("experiments", false);
ReplyData result = new ReplyData(); ReplyData result = new ReplyData();
DB db = DB.getInstance(context); DB db = DB.getInstance(context);
@ -4088,13 +4091,15 @@ public class FragmentMessages extends FragmentBase
result.answers = db.answer().getAnswersByFavorite(true); result.answers = db.answer().getAnswersByFavorite(true);
result.forwarded = new ArrayList<>(); result.forwarded = new ArrayList<>();
long last = new Date().getTime() - MAX_FORWARD_ADDRESS_AGE; if (experiments) {
List<String> fwds = db.message().getForwardAddresses(message.account, last); long last = new Date().getTime() - MAX_FORWARD_ADDRESS_AGE;
if (fwds != null) List<String> fwds = db.message().getForwardAddresses(message.account, last);
for (String fwd : fwds) if (fwds != null)
for (Address address : DB.Converters.decodeAddresses(fwd)) for (String fwd : fwds)
if (address instanceof InternetAddress) for (Address address : DB.Converters.decodeAddresses(fwd))
result.forwarded.add((InternetAddress) address); if (address instanceof InternetAddress)
result.forwarded.add((InternetAddress) address);
}
return result; return result;
} }

@ -8,10 +8,19 @@
<style> <style>
code{white-space: pre-wrap;} code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;} span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;} div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{display: inline-block; vertical-align: top; width: 50%;} div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;} /* The extra [class] is a hack that increases specificity enough to
override a similar rule in reveal.js */
ul.task-list[class]{list-style: none;}
ul.task-list li input[type="checkbox"] {
font-size: inherit;
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style> </style>
<link rel="shortcut icon" href="https://raw.githubusercontent.com/M66B/FairEmail/master/app/src/main/ic_launcher-web.png"> <link rel="shortcut icon" href="https://raw.githubusercontent.com/M66B/FairEmail/master/app/src/main/ic_launcher-web.png">
<meta name="theme-color" content="#006db3"> <meta name="theme-color" content="#006db3">
@ -2220,6 +2229,9 @@ $NotDisplayed</code></pre>
<p><em>Rule expression condition (1.2174+)</em></p> <p><em>Rule expression condition (1.2174+)</em></p>
<p>See <a href="#faq71">this FAQ</a></p> <p>See <a href="#faq71">this FAQ</a></p>
<p><br /></p> <p><br /></p>
<p><em>Fast forward (1.2226+)</em></p>
<p>Show (fast) <em>Forward to</em> in the answer menu, with adresses recently used for forwarding messages.</p>
<p><br /></p>
<p><a name="faq126"></a> <strong>(126) Can message previews be sent to my smartwatch?</strong></p> <p><a name="faq126"></a> <strong>(126) Can message previews be sent to my smartwatch?</strong></p>
<p>🌎 <a href="https://translate.google.com/translate?sl=en&amp;u=https%3A%2F%2Fm66b.github.io%2FFairEmail%2F%23faq126">Google Translate</a></p> <p>🌎 <a href="https://translate.google.com/translate?sl=en&amp;u=https%3A%2F%2Fm66b.github.io%2FFairEmail%2F%23faq126">Google Translate</a></p>
<p>FairEmail fetches a message in two steps:</p> <p>FairEmail fetches a message in two steps:</p>

Loading…
Cancel
Save