Comparing Subject and Sender
I noticed a lot of my spam has the following header formats:
Subject: Some Spam Sender
From: SomeSpamSender@spammer.com
Is there way to compare headers without piping to a separate script?
Essentially I would like to set the following filter:
If "From" contains ["Subject" without white spaces]
Then Discard message.
Any help would be appreciated.
-
Hello, This isn't possible with a standard filter rule, but you might be able to get that working using a custom regular expression in the filter. You may want to seek out advice from the Exim users mailing list if you do not receive additional user-feedback on this thread: Exim-users Info Page Thank you. 0 -
Hello, This isn't possible with a standard filter rule, but you might be able to get that working using a custom regular expression in the filter. You may want to seek out advice from the Exim users mailing list if you do not receive additional user-feedback on this thread: Exim-users Info Page Thank you.
I apologise if I was not clear in my post. I am looking for a "regex" for the rhs of the filter. So the first question would be: Is "Subject" a reserved word that can be used in an expression?0 -
Hello, It doesn't appear as though you can use variables for the operators in that way (e.g. $message_body contains "\\$header_subject"). Exim provides in-depth documentation on filter rules at: 3. Exim filter files You may want to setup a custom filter rule for testing and consult with the Exim user's mailing list to see if anyone has setup something similiar. Thank you. 0
Please sign in to leave a comment.
Comments
3 comments