搜索 | 用户支持

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

详细了解

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.

有帮助吗?

我要提问

您需要登录才能回复。如果您还没账号,可以提出新问题