fix: sieve script had errors involving teh if else
This commit is contained in:
parent
b71a516fe4
commit
a7a7b8489a
1 changed files with 8 additions and 6 deletions
|
@ -117,19 +117,21 @@ with lib; let
|
|||
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 {
|
||||
fileinto :create "''${1}";
|
||||
stop;
|
||||
if header :is "X-Spam" "Yes" {
|
||||
fileinto :create "''${1}.Junk";
|
||||
stop;
|
||||
} else {
|
||||
fileinto :create "''${1}";
|
||||
stop;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# handle spam Reports for general users
|
||||
if address :matches ["From"] "postmaster@mimi.skynet.ie" {
|
||||
fileinto :create "INBOX..Spam_Report";
|
||||
fileinto :create "INBOX.Spam_Report";
|
||||
stop;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue