feat: all mail from our own internal mail gateway gets put into its own folder for everyone
Some checks failed
Build_Deploy / build (push) Failing after 11m22s
Build_Deploy / linter (push) Failing after 11m29s
Build_Deploy / deploy_dns (push) Has been cancelled
Build_Deploy / deploy_active (active) (push) Has been cancelled
Build_Deploy / deploy_active (active-core) (push) Has been cancelled
Build_Deploy / deploy_active (active-ext) (push) Has been cancelled
Some checks failed
Build_Deploy / build (push) Failing after 11m22s
Build_Deploy / linter (push) Failing after 11m29s
Build_Deploy / deploy_dns (push) Has been cancelled
Build_Deploy / deploy_active (active) (push) Has been cancelled
Build_Deploy / deploy_active (active-core) (push) Has been cancelled
Build_Deploy / deploy_active (active-ext) (push) Has been cancelled
This commit is contained in:
parent
f7412b08fb
commit
6390d09059
1 changed files with 12 additions and 1 deletions
|
@ -113,7 +113,11 @@ with lib; let
|
|||
address :domain ["To", "Cc"] "skynet.ie"
|
||||
){
|
||||
if address :matches ["To", "Cc"] "*@skynet.ie" {
|
||||
if header :is "X-Spam" "Yes" {
|
||||
# handle spam reports specifically for teh service accounts in each users inbox
|
||||
if address :matches ["From"] "postmaster@mimi.skynet.ie" {
|
||||
fileinto :create "''${1}.Spam_Report";
|
||||
stop;
|
||||
} else if header :is "X-Spam" "Yes" {
|
||||
fileinto :create "''${1}.Junk";
|
||||
stop;
|
||||
} else {
|
||||
|
@ -122,6 +126,13 @@ with lib; let
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
# handle spam Reports for general users
|
||||
if address :matches ["From"] "postmaster@mimi.skynet.ie" {
|
||||
fileinto :create "INBOX..Spam_Report";
|
||||
stop;
|
||||
}
|
||||
|
||||
if allof (
|
||||
address :localpart ["From"] ["${toString create_config_to}"],
|
||||
address :domain ["From"] "skynet.ie"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue