Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

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.

Modificado por user240250747203422110146690518486743534925 a

Todas as respostas (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)