Caută ajutor

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Află mai multe

Filter e-mails involving only a single specific domain

  • 4 răspunsuri
  • 0 au această problemă
  • Ultimul răspuns de 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

Soluție aleasă

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

Citește acest răspuns în context 👍 0

Toate răspunsurile (4)

more options

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

Te-a ajutat?

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?

Te-a ajutat?

more options

Soluție aleasă

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

Te-a ajutat?

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.

Te-a ajutat?

Adresează o întrebare

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.