View Single Post
Old 16 May 2020, 09:12 AM   #45
gardenweed
Cornerstone of the Community
 
Join Date: Jun 2008
Location: Perth
Posts: 664
Quote:
Originally Posted by Jet Pilot View Post
....
Can someone tell me how to write a sieve to discard all email unless there in my contacts?

....
Disclaimer - I'm no expert in sieve - and probably shouldn't be suggesting such, but this is what I would try if I was playing with my own account (try it at your own risk):

Code:
if not header :matches "X-Spam-Known-Sender" "yes*" {
  discard;
  stop;
}
Repeat warning - try at your own risk.
gardenweed is offline   Reply With Quote