Using variables in WHAT objects

Nov 22, 2018
4
0
41
51
Hi,
I would like to create a rule, that checks if the Reply-To field contains a mail address, that is different from the sender.
This WHAT object would look like this:

Code:
Field:      Reply-To
Value:      ^((?!__SENDER__).)*$

The thing is: that does not work. If I replace the string __SENDER__ with the literal email address I'm testing it with, it works - so I guess you can't use variables in this context.
Is this correct?
Is there another possibility to get this to work?

TIA, Roland.
 
Is this correct?
Yes the Match Field (and all other What Objects) do not use the variables.

Is there another possibility to get this to work?
AFAICT there is a SpamAssassin rule that matches on Reply-to being not equal to the sender - you could increase the score of this - and thus give the affected mails a higher spamscore

I hope this helps!