Hi all,
I'm not very familiar with how to manage language encoding, and hoped
someone could help. Some time ago I wrote a rule that looks for subjects
that consist of a single word that's more than N characters. It works, but
I'm learning that it's performed before the content of the subject is
converted into something human-readable. Instead, it operates on something
like:

Subject: =?utf-8?B?44CK546v55CD5peF6K6v44CL5Y6f5Yib77ya5Zyo57q/5peF5ri4?=

How can I write a header rule that operates on the decoded utf content?

header          __SUB_NOSPACE   Subject =~ /^.\S+$/
header          __SUB_VERYLONG  Subject =~ /^.{20,200}\S+$/
meta            LOC_SUBNOSPACE  (__SUB_VERYLONG && __SUB_NOSPACE)
describe        LOC_SUBNOSPACE  Subject with no space and one long word
score           LOC_SUBNOSPACE  0.8

Thanks,
Alex

Reply via email to