Hi,

Over the years there have been rules created to tag on rawbody with a
URL. Is it possible to write a rule against only the text/plain
component of an email?

https://pastebin.com/bvrdeLv3

My attempts have failed because the body also includes the subject.
This is my attempt but I don't think it's right.

body __BODYLEN_LE_200 /^.{2,200}$/s
tflags  __BODYLEN_LE_200 multiple maxhits=2
body __BODY_GT_200 /^.{201}/s
meta __BODY_LE_200 (__BODYLEN_LE_200 <= 2) && !__BODY_GT_200

meta    SHORT_BODY  __BODY_LE_200 && !__EMPTY_BODY
score   SHORT_BODY  0.01
describe SHORT_BODY Short text/plain body

Reply via email to