Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sympl
Sympl
Commits
2045c427
Commit
2045c427
authored
Apr 09, 2021
by
Paul Cammish
Browse files
Tag spam subject
parent
5c6487ae
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
mail/exim4/system_filter
View file @
2045c427
...
@@ -8,3 +8,14 @@ if first_delivery then
...
@@ -8,3 +8,14 @@ if first_delivery then
headers add $acl_m3
headers add $acl_m3
endif
endif
endif
endif
# Prefix the subject of mail identified as spam if it's not already prefixed
if $h_X-Spam-Status: contains "spam" then
if $header_subject: does not contain "[spam]" then
# replace existing subject header as 'Original-Subject'
headers add "Original-Subject: $h_subject"
headers remove "Subject"
# add new subject header with prefix
headers add "Subject: [spam] $h_original-subject"
endif
endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment