Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Is it possible to use regular expressions when creating an email filter?

more options

I want to move to the folder all the letters for which the header has a certain format. For example:

The regular expression for these headers will be:

  • \[(.*)\](.*)
  • \[(.*)(example\.com|example\.net)\](.*)

The second option will exclude the movement of some letters that do not match the regular expression.

I want to move to the folder all the letters for which the header has a certain format. For example: * [promo.example.com] My first message * [example.com] My second message * [foo.example.net] Third message * [bar.foo.com] Foo bar baz The regular expression for these headers will be: * \[(.*)\](.*) * \[(.*)(example\.com|example\.net)\](.*) The second option will exclude the movement of some letters that do not match the regular expression.

由user240250747203422110146690518486743534925于修改

所有回复 (4)

more options

For some reason, there is no line break in the question ...

And regex:

  • \[(.*)\](.*)
  • \[(.*)(example\.com|example\.net)\](.*)
more options

The FiltaQuilla add-on (for TB 60 and lower) allows regex for searches, but not for filter actions. I'm not aware of any way to apply regex to message filters in TB 68. See if you can accomplish the same result using e.g. From contains example.com, or possibly create filters for custom headers.

more options

This extension is not compatible with the installed version. I am using 68.2.1, and the extension works with version 60 and below.

more options

Now this rule works for me (see screenshot)