mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-21 23:32:51 +00:00
Experiment: fast forward
This commit is contained in:
parent
872cc87a5b
commit
e7f91c9c3a
3 changed files with 33 additions and 10 deletions
6
FAQ.md
6
FAQ.md
|
@ -4267,6 +4267,12 @@ See [this FAQ](#faq71)
|
|||
|
||||
<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>
|
||||
**(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) {
|
||||
long id = args.getLong("id");
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean experiments = prefs.getBoolean("experiments", false);
|
||||
|
||||
ReplyData result = new ReplyData();
|
||||
|
||||
DB db = DB.getInstance(context);
|
||||
|
@ -4088,13 +4091,15 @@ public class FragmentMessages extends FragmentBase
|
|||
result.answers = db.answer().getAnswersByFavorite(true);
|
||||
|
||||
result.forwarded = new ArrayList<>();
|
||||
long last = new Date().getTime() - MAX_FORWARD_ADDRESS_AGE;
|
||||
List<String> fwds = db.message().getForwardAddresses(message.account, last);
|
||||
if (fwds != null)
|
||||
for (String fwd : fwds)
|
||||
for (Address address : DB.Converters.decodeAddresses(fwd))
|
||||
if (address instanceof InternetAddress)
|
||||
result.forwarded.add((InternetAddress) address);
|
||||
if (experiments) {
|
||||
long last = new Date().getTime() - MAX_FORWARD_ADDRESS_AGE;
|
||||
List<String> fwds = db.message().getForwardAddresses(message.account, last);
|
||||
if (fwds != null)
|
||||
for (String fwd : fwds)
|
||||
for (Address address : DB.Converters.decodeAddresses(fwd))
|
||||
if (address instanceof InternetAddress)
|
||||
result.forwarded.add((InternetAddress) address);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
18
index.html
18
index.html
|
@ -8,10 +8,19 @@
|
|||
<style>
|
||||
code{white-space: pre-wrap;}
|
||||
span.smallcaps{font-variant: small-caps;}
|
||||
span.underline{text-decoration: underline;}
|
||||
div.column{display: inline-block; vertical-align: top; width: 50%;}
|
||||
div.columns{display: flex; gap: min(4vw, 1.5em);}
|
||||
div.column{flex: auto; overflow-x: auto;}
|
||||
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>
|
||||
<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">
|
||||
|
@ -2220,6 +2229,9 @@ $NotDisplayed</code></pre>
|
|||
<p><em>Rule expression condition (1.2174+)</em></p>
|
||||
<p>See <a href="#faq71">this FAQ</a></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 href="https://translate.google.com/translate?sl=en&u=https%3A%2F%2Fm66b.github.io%2FFairEmail%2F%23faq126">Google Translate</a></p>
|
||||
<p>FairEmail fetches a message in two steps:</p>
|
||||
|
|
Loading…
Reference in a new issue