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

This commit is contained in:
silver 2025-04-29 01:01:55 +01:00
parent f7412b08fb
commit 6390d09059
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -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"