From 9be86e4d46f5a94593f908d523e0d993b81b66cf Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 29 Jan 2025 11:49:07 +0100 Subject: [PATCH] Release expression conditions --- FAQ.md | 8 +------- app/src/main/java/eu/faircode/email/FragmentRule.java | 7 ------- app/src/main/res/layout/fragment_rule.xml | 6 ------ index.html | 5 +---- 4 files changed, 2 insertions(+), 24 deletions(-) diff --git a/FAQ.md b/FAQ.md index 43205c037c..3ad7b5e02d 100644 --- a/FAQ.md +++ b/FAQ.md @@ -2901,7 +2901,7 @@ to be able to match [unfolded headers](https://tools.ietf.org/html/rfc2822#secti **Expressions** -Since version 1.2174 it is possible to use expression conditions, which is [experimental](#faq125) for now. +Since version 1.2174 it is possible to use expression conditions. Please [see here](https://ezylang.github.io/EvalEx/references/references.html) about which constants, operators and functions are available. @@ -4291,12 +4291,6 @@ Composing messages using [Markdown](https://en.wikipedia.org/wiki/Markdown) can
-*Rule expression condition (1.2174+)* - -See [this FAQ](#faq71) - -
- *Fast forward to (1.2226+)* Show (fast) *Forward to* in the answer menu, with addresses recently used for forwarding messages (if any). diff --git a/app/src/main/java/eu/faircode/email/FragmentRule.java b/app/src/main/java/eu/faircode/email/FragmentRule.java index eb6074a2c0..de5c0f9cb8 100644 --- a/app/src/main/java/eu/faircode/email/FragmentRule.java +++ b/app/src/main/java/eu/faircode/email/FragmentRule.java @@ -191,7 +191,6 @@ public class FragmentRule extends FragmentBase { private ContentLoadingProgressBar pbWait; private Group grpReady; - private Group grpExpression; private Group grpAge; private Group grpSnooze; private Group grpFlag; @@ -401,7 +400,6 @@ public class FragmentRule extends FragmentBase { pbWait = view.findViewById(R.id.pbWait); grpReady = view.findViewById(R.id.grpReady); - grpExpression = view.findViewById(R.id.grpExpression); grpAge = view.findViewById(R.id.grpAge); grpSnooze = view.findViewById(R.id.grpSnooze); grpFlag = view.findViewById(R.id.grpFlag); @@ -946,7 +944,6 @@ public class FragmentRule extends FragmentBase { tvFolder.setText(null); bottom_navigation.setVisibility(View.GONE); grpReady.setVisibility(View.GONE); - grpExpression.setVisibility(View.GONE); grpAge.setVisibility(View.GONE); grpSnooze.setVisibility(View.GONE); grpFlag.setVisibility(View.GONE); @@ -1532,10 +1529,6 @@ public class FragmentRule extends FragmentBase { if (action != null) showActionParameters(action.type); } - - SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); - boolean experiments = prefs.getBoolean("experiments", false); - grpExpression.setVisibility(experiments ? View.VISIBLE : View.GONE); } catch (Throwable ex) { Log.e(ex); } finally { diff --git a/app/src/main/res/layout/fragment_rule.xml b/app/src/main/res/layout/fragment_rule.xml index be6881dec6..d88bb98a97 100644 --- a/app/src/main/res/layout/fragment_rule.xml +++ b/app/src/main/res/layout/fragment_rule.xml @@ -876,12 +876,6 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvExpression" /> - -

Note that dot all mode is enabled to be able to match unfolded headers.


Expressions

-

Since version 1.2174 it is possible to use expression conditions, which is experimental for now.

+

Since version 1.2174 it is possible to use expression conditions.

Please see here about which constants, operators and functions are available.

The following extra variables are available:

    @@ -2237,9 +2237,6 @@ $NotDisplayed

    Markdown (1.2061+)

    Composing messages using Markdown can be enabled via the three-dots overflow menu of the message editor.


    -

    Rule expression condition (1.2174+)

    -

    See this FAQ

    -


    Fast forward to (1.2226+)

    Show (fast) Forward to in the answer menu, with addresses recently used for forwarding messages (if any). You can show the answer menu by tapping on the answer button at the bottom right of an opened/expanded message.