JS regex advice
#7253
Replies: 2 comments 1 reply
-
this works I think: subject: .*(ship|order|details).*\nto: myorders@tutamail |
Beta Was this translation helpful? Give feedback.
1 reply
-
Honestly, I don't know what the problem was but without changing a thing it is working beautifully. I can order things and get the order-related emails in my inbox but all of the other garbage I'm sent (the spam you get once companies have your email) just gets trashed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to create a filter rule to move emails that come in to my "orders" address to a folder if and only if they have certain words in the subject field. For example:
Subject: Here are your shipping details
To: myorders@tutamail
JS regex: /subject:(?=.*ship|.*order|.*invoice)(?=to:.*myorders@tutamail)/gmis
However, I am running into a problem as adding the ".*" in the subject lookahead is matching anything and everything in the header. How can I make this work?
Beta Was this translation helpful? Give feedback.
All reactions