Skip to content

Doing nothing is allowed#70

Open
mlsad3 wants to merge 1 commit intoranmocy:mainfrom
mlsad3:doing-nothing-is-allowed
Open

Doing nothing is allowed#70
mlsad3 wants to merge 1 commit intoranmocy:mainfrom
mlsad3:doing-nothing-is-allowed

Conversation

@mlsad3
Copy link
Copy Markdown
Contributor

@mlsad3 mlsad3 commented Aug 14, 2022

Allow rules with no actions.

Rows in the rules sheet can match a mail, but do not need to specify actions.

@aaronj1335 and @ranmocy, This is just a different way of doing PR #29 instead of adding a new InboxActionType. #29 has been around for a couple years and has valid reasons for merging, so this is just giving an alternative in case it helps speed things along ;)

  • As long as an email matches a rule, do not worry
  • If an email does not match any rules, then Throw error

Previously, Gmail Automata would Throw error if an email matched a rule but did nothing. This was a little counter-intuitive, since Gmail Automata did not throw any errors about the rule when parsing it.

This PR includes a prerequisite PR #65 (Cleanup imports/linting, Refactor tests). The main commit to look at (which has the logic for "Allowing rules with no actions") is 9640012.

@mlsad3 mlsad3 force-pushed the doing-nothing-is-allowed branch 5 times, most recently from 359507d to 08e0809 Compare August 19, 2022 01:26
@jitsu-net
Copy link
Copy Markdown

FWIW, I support this addition. Importantly, it is intuitive for new users.

Rows in the rules sheet can match a mail, but do not need to specify actions.
This is a different way of doing PR ranmocy#29, instead of adding a new InboxActionType
we just decide to not worry about if a thread has any actions to do (as long as
it matched a rule).
@mlsad3 mlsad3 force-pushed the doing-nothing-is-allowed branch from 08e0809 to 4a01d2a Compare January 18, 2023 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants