We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Filter e-mails involving only a single specific domain

  • 4 回覆
  • 0 有這個問題
  • 最近回覆由 david

more options

I am trying to set-up a filter that matches e-mails having all their contacts (sender, recipients, ...) from a single fixed domain (e.g. company.tld). It means that any e-mail having at least 1 contact (sender/recipient) not from company.tld would not trigger the filter. Is there a way to do this with standard Thunderbird filters? I also tried to use a regexp on the header with FiltaQuilla extension but it is not trivial.

Any help would be welcome. Thanks, Olivier

I am trying to set-up a filter that matches e-mails having all their contacts (sender, recipients, ...) from a single fixed domain (e.g. company.tld). It means that any e-mail having at least 1 contact (sender/recipient) not from company.tld would not trigger the filter. Is there a way to do this with standard Thunderbird filters? I also tried to use a regexp on the header with FiltaQuilla extension but it is not trivial. Any help would be welcome. Thanks, Olivier

被選擇的解決方法

Oh, I just realised I should use "sender:" "recipients:" and "ccList:" instead of "From:" "To:" and "Cc:"

從原來的回覆中察看解決方案 👍 0

所有回覆 (4)

more options

Maybe if you provide an example of what you're attempting, someone may offer suggestions.

有幫助嗎?

more options

So far, using Filtaquilla Header Regex, I created 2 filters:

One to cover the case with a Cc field The Header Regex is the same for From: To: and Cc: fields /^(?:[a-zA-Z0-9._%+-]+@domain\.tld|[A-Za-z\s]+<[a-zA-Z0-9._%+-]+@domain\.tld>)(?:\s*,\s*(?:[a-zA-Z0-9._%+-]+@domain\.tld|[A-Za-z\s]+<[a-zA-Z0-9._%+-]+@domain\.tld>))*$/gi

One to cover the case without Cc field In this case the Regex is used for From: and To: fields And I have an additional rule checking that the Cc field does not contain "@" (using Mozilla standard rule)

Any clue?

有幫助嗎?

more options

選擇的解決方法

Oh, I just realised I should use "sender:" "recipients:" and "ccList:" instead of "From:" "To:" and "Cc:"

有幫助嗎?

more options

Ok, I was thinking of the 'from, to, cc, bcc' option. I didn't think your solution would work, but I'm always happy to learn. :) I need to study this further. Thank you.

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題