
Filter e-mails involving only a single specific domain
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:"
Read this answer in context 👍 0All Replies (4)
Maybe if you provide an example of what you're attempting, someone may offer suggestions.
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?
தீர்வு தேர்ந்தெடுக்கப்பட்டது
Oh, I just realised I should use "sender:" "recipients:" and "ccList:" instead of "From:" "To:" and "Cc:"
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.