On 1 Sep 2018, at 18:22 (-0400), David B Funk wrote:
On the other-hand, if you want to decode the subject line and then pattern-match against all the possible UTF-8 emojies, you're going to end up with a rather unwieldy rule.
SA "header" rules match against decoded headers, not the Base64 or QP encoded text.
In principle, modern Perl can match against named Unicode "properties" so in principle it should be possible to have a rule something like:
header EMOJI_IN_SUBJ Subject =~ '/[\p{Miscellaneous Symbols and Pictographs}\p{Emoticons}\p{Ornamental Dingbats}]/'
HOWEVER: this does not work in current SA. I have not dissected exactly why but I know there have been many problems in handling Unicode in the SA code. Universal Unicode support is a defining goal of SA 4.0.0, so maybe this would be possible in the svn 'trunk' codebase where a lot of that work is done. On the other hand, it may be a consequence of SA parsing rules too harshly and mangling that particular odd RE syntax.
-- Bill Cole [email protected] or [email protected] (AKA @grumpybozo and many *@billmail.scconsult.com addresses)
